[gtk: 1/3] Wayland: Only send smooth scroll events for tablet tools




commit 8514457d0fef27fedb785a5ffed2b31c79090424
Author: Luca Bacci <luca bacci982 gmail com>
Date:   Fri May 6 13:45:06 2022 +0200

    Wayland: Only send smooth scroll events for tablet tools

 gdk/wayland/gdkdevice-wayland.c | 11 -----------
 1 file changed, 11 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 2446bddab3..322ee2d88b 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -3999,17 +3999,6 @@ tablet_tool_handle_wheel (void                      *data,
                                 GDK_SCROLL_UNIT_WHEEL);
 
   _gdk_wayland_display_deliver_event (seat->display, event);
-
-  /* Send discrete event */
-  event = gdk_scroll_event_new_discrete (tablet->pointer_info.focus,
-                                         tablet->stylus_device,
-                                         tablet->current_tool->tool,
-                                         tablet->pointer_info.time,
-                                         device_get_modifiers (tablet->logical_device),
-                                         clicks > 0 ? GDK_SCROLL_DOWN : GDK_SCROLL_UP,
-                                         TRUE);
-
-  _gdk_wayland_display_deliver_event (seat->display, event);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]