mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-08 03:30:17 +00:00
Don't call g_object_ref on NULL, it whines.
Fixes https://gitlab.gnome.org/GNOME/gtk/issues/1822
This commit is contained in:
parent
1a29a2f03f
commit
9c33adf118
@ -613,7 +613,10 @@ find_toplevel_under_pointer (GdkDisplay *display,
|
||||
gint gdk_x = 0, gdk_y = 0;
|
||||
_gdk_quartz_window_nspoint_to_gdk_xy (screen_point, &gdk_x, &gdk_y);
|
||||
toplevel = _gdk_quartz_window_find_child (_gdk_root, gdk_x, gdk_y, TRUE);
|
||||
info->toplevel_under_pointer = g_object_ref (toplevel);
|
||||
if (toplevel)
|
||||
info->toplevel_under_pointer = g_object_ref (toplevel);
|
||||
else
|
||||
info->toplevel_under_pointer = NULL;
|
||||
}
|
||||
if (toplevel)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user