diff options
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) { | |||
180 | struct sway_view *sway_view = view->sway_view; | 180 | struct sway_view *sway_view = view->sway_view; |
181 | struct wlr_surface *surface = sway_view->surface; | 181 | struct wlr_surface *surface = sway_view->surface; |
182 | 182 | ||
183 | if (!surface) { | ||
184 | return; | ||
185 | } | ||
186 | |||
183 | switch (sway_view->type) { | 187 | switch (sway_view->type) { |
184 | case SWAY_XDG_SHELL_V6_VIEW: { | 188 | case SWAY_XDG_SHELL_V6_VIEW: { |
185 | int window_offset_x = view->sway_view->wlr_xdg_surface_v6->geometry->x; | 189 | int window_offset_x = view->sway_view->wlr_xdg_surface_v6->geometry->x; |