[gtk+/client-side-windows: 69/284] Fix gdk_window_get_root_origin and gdk_window_get_frame_extents when called on non-toplevels
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-windows: 69/284] Fix gdk_window_get_root_origin and gdk_window_get_frame_extents when called on non-toplevels
- Date: Thu, 2 Apr 2009 14:05:31 -0400 (EDT)
commit 4202cc0c60a162ed9322edf91aefa82e3c38092c
Author: Alexander Larsson <alexl redhat com>
Date: Thu Dec 18 20:11:59 2008 +0100
Fix gdk_window_get_root_origin and gdk_window_get_frame_extents when called on non-toplevels
---
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 c64e458..d893364 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]