[gtk+/client-side-windows: 32/284] Handle gdk_window_get_impl_window on root window



commit ede9c2cf743e9532e7d39b5874ff1a5587dee6e8
Author: Alexander Larsson <alexl redhat com>
Date:   Sat Dec 6 23:01:39 2008 +0100

    Handle gdk_window_get_impl_window on root window
---
 gdk/gdkwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 5830f8a..a7424e2 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -385,7 +385,7 @@ gdk_window_is_offscreen (GdkWindowObject *window)
 static GdkWindowObject *
 gdk_window_get_impl_window (GdkWindowObject *window)
 {
-  while (window->parent->impl == window->impl)
+  while (window->parent != NULL && window->parent->impl == window->impl)
     window = window->parent;
 
   return window;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]