summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpgritti@gmail.com>2008-03-18 12:22:25 +0000
committerThomas James Alexander Thurman <tthurman@src.gnome.org>2008-03-18 12:22:25 +0000
commit7d239b0d4582b4d25f6edc19b2bec32f0f821ce2 (patch)
tree3aabac804c3caeb95fbd5c7ea7db0b90400b4bdc
parent9836007f5ea737329ff770fe349f062dd9675768 (diff)
downloadmetacity-7d239b0d4582b4d25f6edc19b2bec32f0f821ce2.tar.gz
newly created windows can't be considered to be above themselves; fixes
2008-03-18 Marco Pesenti Gritti <mpgritti@gmail.com> * src/core/window.c (window_would_be_covered): newly created windows can't be considered to be above themselves; fixes bug #519188. svn path=/trunk/; revision=3650
-rw-r--r--ChangeLog5
-rw-r--r--src/core/window.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index aebe8040..35076b31 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-03-18 Marco Pesenti Gritti <mpgritti@gmail.com>
+
+ * src/core/window.c (window_would_be_covered): newly created windows
+ can't be considered to be above themselves; fixes bug #519188.
+
2008-03-11 Matthew Wilson <msw@gimp.org>
* src/core/keybindings.c (meta_display_process_key_event, process_event,
diff --git a/src/core/window.c b/src/core/window.c
index ebf3e095..551fea83 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -2009,7 +2009,7 @@ window_would_be_covered (const MetaWindow *newbie)
{
MetaWindow *w = tmp->data;
- if (w->wm_state_above)
+ if (w->wm_state_above && w != newbie)
{
/* We have found a window that is "above". Perhaps it overlaps. */
if (windows_overlap (w, newbie))