From 0ea35efec4525007e440a15655a96b0006b55203 Mon Sep 17 00:00:00 2001 From: Arjan Molenaar Date: Sun, 6 Oct 2024 14:08:05 +0200 Subject: [PATCH] macos: Fix double emission of mouse release event The event is propagated anyway. Fixes #7021. --- gdk/macos/GdkMacosWindow.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/gdk/macos/GdkMacosWindow.c b/gdk/macos/GdkMacosWindow.c index 1b350303b2..bbcb7a47bc 100644 --- a/gdk/macos/GdkMacosWindow.c +++ b/gdk/macos/GdkMacosWindow.c @@ -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 */