Bug 526635 - _gdk_window_get_toplevel handles FOREIGN windows

2008-05-25  Cody Russell  <bratsche@gnome.org>

        Bug 526635 - _gdk_window_get_toplevel handles FOREIGN windows

        * gdk/x11/gdkwindow-x11.c (_gdk_window_get_toplevel): Check
        !WINDOW_IS_TOPLEVEL instead of checking for GDK_WINDOW_CHILD,
        so that we also take into account for foreign windows.
        Report and patch by Nathaniel Smith.


svn path=/trunk/; revision=20166
This commit is contained in:
Cody Russell 2008-05-25 23:27:34 +00:00 committed by Cody Russell
parent a0e6b36478
commit 4f84a5f292
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,12 @@
2008-05-25 Cody Russell <bratsche@gnome.org>
Bug 526635 - _gdk_window_get_toplevel handles FOREIGN windows
* gdk/x11/gdkwindow-x11.c (_gdk_window_get_toplevel): Check
!WINDOW_IS_TOPLEVEL instead of checking for GDK_WINDOW_CHILD,
so that we also take into account for foreign windows.
Report and patch by Nathaniel Smith.
2008-05-25 Cody Russell <bratsche@gnome.org>
Bug 525461 - Don't invalidate under an input-only child

View File

@ -153,7 +153,7 @@ _gdk_x11_window_get_toplevel (GdkWindow *window)
g_return_val_if_fail (GDK_IS_WINDOW (window), NULL);
if (GDK_WINDOW_TYPE (window) == GDK_WINDOW_CHILD)
if (!WINDOW_IS_TOPLEVEL (window))
return NULL;
private = (GdkWindowObject *)window;