From e7f1aa30dd9126eadcb6e41d757a2923ab947243 Mon Sep 17 00:00:00 2001 From: Antonin Décimo Date: Fri, 9 Aug 2019 16:23:10 +0200 Subject: backend/wayland: check if zxdg_toplevel_decoration_v1 is not NULL --- backend/wayland/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend') diff --git a/backend/wayland/output.c b/backend/wayland/output.c index b179a5f6..1d697d9a 100644 --- a/backend/wayland/output.c +++ b/backend/wayland/output.c @@ -319,7 +319,7 @@ struct wlr_output *wlr_wl_output_create(struct wlr_backend *wlr_backend) { output->zxdg_toplevel_decoration_v1 = zxdg_decoration_manager_v1_get_toplevel_decoration( backend->zxdg_decoration_manager_v1, output->xdg_toplevel); - if (!output->xdg_toplevel) { + if (!output->zxdg_toplevel_decoration_v1) { wlr_log_errno(WLR_ERROR, "Could not get xdg toplevel decoration"); goto error; } -- cgit v1.2.3