aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/xwayland.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-04-17 11:04:57 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-04-17 11:04:57 +1000
commit143b528f71ea71393368815eecebf900ff45cf9d (patch)
treec68c826d6b2d585e053912ccf7254f9e442831da /sway/desktop/xwayland.c
parentDon't damage views if they're hidden by a fullscreen view. (diff)
downloadsway-143b528f71ea71393368815eecebf900ff45cf9d.tar.gz
sway-143b528f71ea71393368815eecebf900ff45cf9d.tar.zst
sway-143b528f71ea71393368815eecebf900ff45cf9d.zip
Handle fullscreen flag when mapping a surface.
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r--sway/desktop/xwayland.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index 963c5a0e..46eaa84c 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -248,6 +248,10 @@ static void handle_map(struct wl_listener *listener, void *data) {
248 // Put it back into the tree 248 // Put it back into the tree
249 wlr_xwayland_surface_set_maximized(xsurface, true); 249 wlr_xwayland_surface_set_maximized(xsurface, true);
250 view_map(view, xsurface->surface); 250 view_map(view, xsurface->surface);
251
252 if (xsurface->fullscreen) {
253 view_set_fullscreen(view, true);
254 }
251} 255}
252 256
253static void handle_destroy(struct wl_listener *listener, void *data) { 257static void handle_destroy(struct wl_listener *listener, void *data) {