macos: change to send motion events to NSApp

This fix addresses a problem where the mouse cursor cannot be changed after it becomes a resize indicator, even in non-CSD windows
This commit is contained in:
sumibi-yakitori
2023-10-03 08:14:27 +09:00
parent 9090c28125
commit 00e4dab1ef

View File

@@ -1265,6 +1265,15 @@ _gdk_macos_display_translate (GdkMacosDisplay *self,
_gdk_macos_display_clear_sorting (self);
}
}
else if (is_motion_event(event_type))
{
NSWindow *orig_window = [nsevent window];
if (orig_window && GDK_IS_MACOS_WINDOW (orig_window)) {
[NSApp sendEvent:nsevent];
}
}
return fill_event (self, window, nsevent, x, y);
}