mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-19 00:20:09 +00:00
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 *
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user