summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-08-25 20:59:09 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-08-25 20:59:09 +0000
commit900de3c304f9cd09194073ce388850c2b5506d67 (patch)
tree1c7896936295c3e8c0200a6f38be2ef4986555a4 /src
parent8b7447b282b4b9ed109f3a13d936898d1cf77afb (diff)
downloadmetacity-900de3c304f9cd09194073ce388850c2b5506d67.tar.gz
metacity-900de3c304f9cd09194073ce388850c2b5506d67.tar.bz2
when freeing a fullscreen window, update layers of the window's group.
2002-08-25 Havoc Pennington <hp@pobox.com> * src/window.c (meta_window_free): when freeing a fullscreen window, update layers of the window's group.
Diffstat (limited to 'src')
-rw-r--r--src/window.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index 8c3b827..7d4d444 100644
--- a/src/window.c
+++ b/src/window.c
@@ -801,7 +801,22 @@ meta_window_free (MetaWindow *window)
window->desc);
window->unmanaging = TRUE;
-
+
+ if (window->fullscreen)
+ {
+ MetaGroup *group;
+
+ /* If the window is fullscreen, it may be forcing
+ * other windows in its group to a higher layer
+ */
+
+ meta_stack_freeze (window->screen->stack);
+ group = meta_window_get_group (window);
+ if (group)
+ meta_group_update_layers (group);
+ meta_stack_thaw (window->screen->stack);
+ }
+
/* If we have the focus, focus some other window.
* This is done first, so that if the unmap causes
* an EnterNotify the EnterNotify will have final say