forked from AuroraMiddleware/gtk
macos: drop enter/exit when in manual drag/resize
If we are in a manual resize/drag then we don't want to generate crossing events as they can just confuse things.
This commit is contained in:
parent
32935d9fb0
commit
ea59d174a0
@ -1200,7 +1200,11 @@ _gdk_macos_display_translate (GdkMacosDisplay *self,
|
||||
GdkDevice *pointer = gdk_seat_get_pointer (seat);
|
||||
GdkDeviceGrabInfo *grab = _gdk_display_get_last_device_grab (GDK_DISPLAY (self), pointer);
|
||||
|
||||
if (grab == NULL)
|
||||
if ([(GdkMacosWindow *)window isInManualResizeOrMove])
|
||||
{
|
||||
ret = GDK_MACOS_EVENT_DROP;
|
||||
}
|
||||
else if (grab == NULL)
|
||||
{
|
||||
if (event_type == NSEventTypeMouseExited)
|
||||
[[NSCursor arrowCursor] set];
|
||||
|
Loading…
Reference in New Issue
Block a user