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:
Giovanni Campagna 2012-12-18 23:17:38 +01:00
parent 3876a1a192
commit 6111d3ee4a

View File

@ -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)