[gtk/wip/chergert/for-main] macos: actually drop unnecessary momentum events
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/for-main] macos: actually drop unnecessary momentum events
- Date: Thu, 10 Mar 2022 16:04:26 +0000 (UTC)
commit 4ced1c90f168571ab3c2e422b77ec22569c079d3
Author: Christian Hergert <christian hergert me>
Date: Thu Mar 10 03:21:12 2022 -0800
macos: actually drop unnecessary momentum events
These would get passed along to the NSApplication which we don't really
need to have happen. Denote it as such.
gdk/macos/gdkmacosdisplay-translate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/macos/gdkmacosdisplay-translate.c b/gdk/macos/gdkmacosdisplay-translate.c
index fe4701c39d..4ad12ba778 100644
--- a/gdk/macos/gdkmacosdisplay-translate.c
+++ b/gdk/macos/gdkmacosdisplay-translate.c
@@ -628,7 +628,7 @@ fill_scroll_event (GdkMacosDisplay *self,
* handle those internally.
*/
if (phase == 0 && momentumPhase != 0)
- return NULL;
+ return GDK_MACOS_EVENT_DROP;
seat = gdk_display_get_default_seat (GDK_DISPLAY (self));
pointer = gdk_seat_get_pointer (seat);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]