Handle gdk_window_get_impl_window on root window
This commit is contained in:
parent
077eab6edf
commit
ede9c2cf74
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user