From 4202cc0c60a162ed9322edf91aefa82e3c38092c Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 18 Dec 2008 20:11:59 +0100 Subject: Fix gdk_window_get_root_origin and gdk_window_get_frame_extents when called on non-toplevels --- gdk/x11/gdkwindow-x11.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'gdk/x11/gdkwindow-x11.c') 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; -- cgit v1.2.1