diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2019-03-15 17:10:38 +0100 |
---|---|---|
committer | Florian Müllner <florian.muellner@gmail.com> | 2019-03-17 14:12:40 +0000 |
commit | f2d7165a524a151bc25649472511f0fb5ece005c (patch) | |
tree | a0baf11831b25c6d9e04824a360a5f4cddd218d9 | |
parent | 1bd3c13fe162052917f00fba6f14019e5d972480 (diff) | |
download | mutter-f2d7165a524a151bc25649472511f0fb5ece005c.tar.gz |
window: Don't try to move hidden attached windows
When a parent window is moved, attached windows (attached modal dialogs
or popups) is moved with it. This is problematic when such a window
hasn't been shown yet (e.g. a popup that has been configured but not
shown), as it'll mean we try to constrain an empty window. Avoid this
issue by not trying to auto-move empty windows.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/496
-rw-r--r-- | src/core/window.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/window.c b/src/core/window.c index 62b2df810..b85db6ee3 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -3781,6 +3781,9 @@ static gboolean maybe_move_attached_window (MetaWindow *window, void *data) { + if (window->hidden) + return FALSE; + if (meta_window_is_attached_dialog (window) || meta_window_get_placement_rule (window)) meta_window_reposition (window); |