From ddc49ede4636b01dad8d8bfb7d0314bf1eb88258 Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Mon, 15 Jan 2018 09:38:05 -0500 Subject: xwm handle map and unmap --- sway/desktop/output.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sway/desktop/output.c') diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 21c8513f..0f00222b 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c @@ -180,6 +180,10 @@ static void output_frame_view(swayc_t *view, void *data) { struct sway_view *sway_view = view->sway_view; struct wlr_surface *surface = sway_view->surface; + if (!surface) { + return; + } + switch (sway_view->type) { case SWAY_XDG_SHELL_V6_VIEW: { int window_offset_x = view->sway_view->wlr_xdg_surface_v6->geometry->x; -- cgit v1.2.3-54-g00ecf