aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/xwayland.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-03-24 23:24:02 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-04-11 09:18:48 -0600
commit195226120fcf4854c90e544a6e7e0ec0b1c3312c (patch)
tree55d6d0e2c7a737897f8941be79ff20697ab3317a /sway/desktop/xwayland.c
parentconfig/output: unbreak on 32-bit architectures (diff)
downloadsway-195226120fcf4854c90e544a6e7e0ec0b1c3312c.tar.gz
sway-195226120fcf4854c90e544a6e7e0ec0b1c3312c.tar.zst
sway-195226120fcf4854c90e544a6e7e0ec0b1c3312c.zip
Honor output for xdg_toplevel_set_fullscreen
This honors the fullscreen output request for `xdg_toplevel_set_fullscreen` and `zxdg_toplevel_v6_set_fullscreen`. If the request was sent before mapping, the fullscreen output request will be retrieved from the client_pending state for the toplevel. The output will be passed to `view_map` and if there is a workspace on the output, the view will be placed on that workspace. If the request comes in after being mapped, the view will be moved to the workspace on the output (if there is one) before becoming fullscreen.
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r--sway/desktop/xwayland.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index 37d0b986..f6ca8f81 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -415,7 +415,7 @@ static void handle_map(struct wl_listener *listener, void *data) {
415 xwayland_view->commit.notify = handle_commit; 415 xwayland_view->commit.notify = handle_commit;
416 416
417 // Put it back into the tree 417 // Put it back into the tree
418 view_map(view, xsurface->surface, xsurface->fullscreen, false); 418 view_map(view, xsurface->surface, xsurface->fullscreen, NULL, false);
419 419
420 transaction_commit_dirty(); 420 transaction_commit_dirty();
421} 421}