Handle gdk_window_get_impl_window on root window

This commit is contained in:
Alexander Larsson 2008-12-06 23:01:39 +01:00 committed by Alexander Larsson
parent 077eab6edf
commit ede9c2cf74

View File

@ -385,7 +385,7 @@ gdk_window_is_offscreen (GdkWindowObject *window)
static GdkWindowObject * static GdkWindowObject *
gdk_window_get_impl_window (GdkWindowObject *window) 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; window = window->parent;
return window; return window;