Merge branch 'amolenaar/macos-fix-double-release' into 'main'

macos: Fix double emission of mouse release event

Closes #7021

See merge request GNOME/gtk!7803
This commit is contained in:
Arjan Molenaar 2024-10-17 10:46:41 +00:00
commit 64b52db5c3

View File

@ -146,14 +146,6 @@ typedef NSString *CALayerContentsGravity;
inManualResize = NO;
inMove = NO;
/* We need to deliver the event to the proper drag gestures or we
* will leave the window in inconsistent state that requires clicking
* in the window to cancel the gesture.
*
* TODO: Can we improve grab breaking to fix this?
*/
_gdk_macos_display_send_event ([self gdkDisplay], event);
_gdk_macos_display_break_all_grabs (GDK_MACOS_DISPLAY (display), time);
/* Reset gravity */