From f9e52eb0d759468a31ca131380d4db8de815f8d1 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Mon, 9 Dec 2019 16:36:47 +0200 Subject: [PATCH] desktop-shell: Always update the shsurf's output to that of the view In case shsurfs are migrated/moved or started on different outputs other than the default one, it causes fullscreen views to never being demoted to a lower stacking level, due to the fact we never update the view's output whenever that has changed. Synchronize the desktop shell output's with the view's output in the transform_handler. Signed-off-by: Marius Vlad Suggested-by: Daniel Stone --- desktop-shell/shell.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index 9ebc9550..d1a2035d 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -3713,6 +3713,8 @@ transform_handler(struct wl_listener *listener, void *data) if (!shsurf) return; + shell_surface_set_output(shsurf, shsurf->view->output); + api = shsurf->shell->xwayland_surface_api; if (!api) { api = weston_xwayland_surface_get_api(shsurf->shell->compositor);