Merge branch 'macos-popover-focus' into 'main'

macos: Fix IMContext for popovers

See merge request GNOME/gtk!7041
This commit is contained in:
Matthias Clasen 2024-03-17 16:55:52 +00:00
commit 6abd9def55

View File

@ -998,7 +998,9 @@ _gdk_macos_display_get_nsevent (GdkEvent *event)
{
const GdkToNSEventMap *map = iter->data;
if (map->gdk_event == event)
if (map->gdk_event->event_type == event->event_type &&
map->gdk_event->device == event->device &&
map->gdk_event->time == event->time)
return map->nsevent;
}