aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-04-20 08:10:58 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-04-20 08:10:58 +1000
commit76837b91325c4bbb2fd631a30a26f125493ca631 (patch)
treeb32d4c2105bf189f5b799f88ab6a4731644bda66 /sway/desktop
parentbd67342bdc82d53bbe492e9ac515600d4a649bc9 (diff)
downloadsway-76837b91325c4bbb2fd631a30a26f125493ca631.tar.xz
Ignore xdg_shell_v6 request_fullscreen if not mapped
Diffstat (limited to 'sway/desktop')
-rw-r--r--sway/desktop/xdg_shell_v6.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/desktop/xdg_shell_v6.c b/sway/desktop/xdg_shell_v6.c
index 87e34666..fdfb9346 100644
--- a/sway/desktop/xdg_shell_v6.c
+++ b/sway/desktop/xdg_shell_v6.c
@@ -234,6 +234,9 @@ static void handle_request_fullscreen(struct wl_listener *listener, void *data)
xdg_shell_v6_view->view.wlr_xdg_surface_v6->role)) {
return;
}
+ if (!xdg_shell_v6_view->view.wlr_xdg_surface_v6->mapped) {
+ return;
+ }
view_set_fullscreen(&xdg_shell_v6_view->view, e->fullscreen);
}