mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 12:32:05 +00:00
window: recompute modal dialog attached status when the window type changes
We want to maintain the invariant that an attached modal dialog is always of type MODAL_DIALOG, so recompute is_attached_dialog() when the window type changes. https://bugzilla.gnome.org/show_bug.cgi?id=690454
This commit is contained in:
parent
3876a1a192
commit
6111d3ee4a
@ -7792,6 +7792,7 @@ recalc_window_type (MetaWindow *window)
|
|||||||
gboolean old_decorated = window->decorated;
|
gboolean old_decorated = window->decorated;
|
||||||
GObject *object = G_OBJECT (window);
|
GObject *object = G_OBJECT (window);
|
||||||
|
|
||||||
|
window->attached = meta_window_should_attach_to_parent (window);
|
||||||
recalc_window_features (window);
|
recalc_window_features (window);
|
||||||
|
|
||||||
if (!window->override_redirect)
|
if (!window->override_redirect)
|
||||||
|
Loading…
Reference in New Issue
Block a user