[mutter] window: recompute modal dialog attached status when the window type changes



commit 6111d3ee4a67e5dfa0a31aec6f0807952802db90
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Tue Dec 18 23:17:38 2012 +0100

    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 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 75a6ef3..059d5b0 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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]