[gtk/wip/chergert/gdk-macos-fixes: 2/3] macos: break grabs after sending release event
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/gdk-macos-fixes: 2/3] macos: break grabs after sending release event
- Date: Wed, 14 Oct 2020 22:46:04 +0000 (UTC)
commit d700cfa2ef1e9a8ce6766335f9a3b6b7f4bad2fe
Author: Christian Hergert <chergert redhat com>
Date: Wed Oct 14 15:31:29 2020 -0700
macos: break grabs after sending release event
gdk/macos/GdkMacosWindow.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/macos/GdkMacosWindow.c b/gdk/macos/GdkMacosWindow.c
index 3c4671aa46..c4a133afcc 100644
--- a/gdk/macos/GdkMacosWindow.c
+++ b/gdk/macos/GdkMacosWindow.c
@@ -126,8 +126,6 @@
GdkDisplay *display = gdk_surface_get_display (GDK_SURFACE (gdk_surface));
double time = ((double)[event timestamp]) * 1000.0;
- _gdk_macos_display_break_all_grabs (GDK_MACOS_DISPLAY (display), time);
-
inManualMove = NO;
inManualResize = NO;
inMove = NO;
@@ -140,6 +138,8 @@
*/
_gdk_macos_display_send_button_event ([self gdkDisplay], event);
+ _gdk_macos_display_break_all_grabs (GDK_MACOS_DISPLAY (display), time);
+
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]