diff options
author | Alexander Larsson <alexl@redhat.com> | 2008-12-18 20:11:59 +0100 |
---|---|---|
committer | Alexander Larsson <alex@localhost.localdomain> | 2009-04-02 10:15:17 +0200 |
commit | 4202cc0c60a162ed9322edf91aefa82e3c38092c (patch) | |
tree | 7b4c6382274d863f2b7f45c3ca477d59402d9c35 /gdk/x11/gdkwindow-x11.c | |
parent | ed5564ee3a3bd55f5de836133b7d539718230b7a (diff) | |
download | gtk+-4202cc0c60a162ed9322edf91aefa82e3c38092c.tar.gz |
Fix gdk_window_get_root_origin and gdk_window_get_frame_extents when called on non-toplevels
Diffstat (limited to 'gdk/x11/gdkwindow-x11.c')
-rw-r--r-- | gdk/x11/gdkwindow-x11.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c index c64e45843e..d893364d20 100644 --- a/gdk/x11/gdkwindow-x11.c +++ b/gdk/x11/gdkwindow-x11.c @@ -2809,9 +2809,6 @@ gdk_window_get_root_origin (GdkWindow *window, { GdkRectangle rect; - if (!WINDOW_IS_TOPLEVEL (window)) - return; - gdk_window_get_frame_extents (window, &rect); if (x) @@ -2865,10 +2862,6 @@ gdk_window_get_frame_extents (GdkWindow *window, rect->width = 1; rect->height = 1; - if (GDK_WINDOW_DESTROYED (window) || - !WINDOW_IS_TOPLEVEL (window)) - return; - while (private->parent && ((GdkWindowObject*) private->parent)->parent) private = (GdkWindowObject*) private->parent; |