diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-03-24 23:24:02 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-04-11 09:18:48 -0600 |
commit | 195226120fcf4854c90e544a6e7e0ec0b1c3312c (patch) | |
tree | 55d6d0e2c7a737897f8941be79ff20697ab3317a /sway/desktop/xwayland.c | |
parent | e0324fc88c4a9041e8c97bdf99ee33eb198c1310 (diff) |
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.c | 2 |
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) { xwayland_view->commit.notify = handle_commit; // Put it back into the tree - view_map(view, xsurface->surface, xsurface->fullscreen, false); + view_map(view, xsurface->surface, xsurface->fullscreen, NULL, false); transaction_commit_dirty(); } |