summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Wick <sebastian.wick@redhat.com>2022-03-04 18:48:31 +0100
committerMarge Bot <marge-bot@gnome.org>2022-03-30 13:01:29 +0000
commit1760dcb0d78539c2a42811bdd837f047cc38d17a (patch)
treebeef6d0581ab6b29c3cee17e0df67d85ea371b98
parent8354289650aa3ae0c531820d3a95251b627f9eb4 (diff)
downloadmutter-1760dcb0d78539c2a42811bdd837f047cc38d17a.tar.gz
window: Check fullscreen status when window changes monitor
For wayland meta_window_move_to_monitor sends a configure to the client without actually moving the window, yet and the meta_display_queue_check_fullscreen call won't detect any changes. Checking for fullscreen in meta_window_update_monitor fixes the problem because it is called whenever the window actually changed the monitor it is on. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2325>
-rw-r--r--src/core/window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/window.c b/src/core/window.c
index 2545a1b5b..ccc6a28a8 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -3744,6 +3744,8 @@ meta_window_update_monitor (MetaWindow *window,
/* If we're changing monitors, we need to update the has_maximize_func flag,
* as the working area has changed. */
meta_window_recalc_features (window);
+
+ meta_display_queue_check_fullscreen (window->display);
}
}