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
This commit is contained in:
Marco Pesenti Gritti 2008-03-18 12:22:25 +00:00 committed by Thomas James Alexander Thurman
parent 9836007f5e
commit 7d239b0d45
2 changed files with 6 additions and 1 deletions

View File

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

View File

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