diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-01-15 09:38:05 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2018-01-15 09:38:05 -0500 |
commit | ddc49ede4636b01dad8d8bfb7d0314bf1eb88258 (patch) | |
tree | a8b8e1a5a92a4203503ead496d8d50fd72fcf850 /sway/desktop/output.c | |
parent | render override redirect (diff) | |
download | sway-ddc49ede4636b01dad8d8bfb7d0314bf1eb88258.tar.gz sway-ddc49ede4636b01dad8d8bfb7d0314bf1eb88258.tar.zst sway-ddc49ede4636b01dad8d8bfb7d0314bf1eb88258.zip |
xwm handle map and unmap
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; |