Merge branch 'wip/chergert/macos-fix-event-filter' into 'main'

macos: improve event filtering for foreign panels

See merge request GNOME/gtk!4495
This commit is contained in:
Matthias Clasen 2022-02-22 19:36:43 +00:00
commit 9ea43096d4

View File

@ -857,9 +857,9 @@ get_surface_from_ns_event (GdkMacosDisplay *self,
find_under_pointer:
if (!surface)
if (surface == NULL && nswindow == NULL)
{
/* Fallback used when no NSSurface set. This happens e.g. when
/* Fallback used when no NSWindow set. This happens e.g. when
* we allow motion events without a window set in gdk_event_translate()
* that occur immediately after the main menu bar was clicked/used.
* This fallback will not return coordinates contained in a window's