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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user