From 6111d3ee4a67e5dfa0a31aec6f0807952802db90 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Tue, 18 Dec 2012 23:17:38 +0100 Subject: [PATCH] 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 --- src/core/window.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/window.c b/src/core/window.c index 75a6ef333..059d5b048 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -7792,6 +7792,7 @@ recalc_window_type (MetaWindow *window) gboolean old_decorated = window->decorated; GObject *object = G_OBJECT (window); + window->attached = meta_window_should_attach_to_parent (window); recalc_window_features (window); if (!window->override_redirect)