[gtk/wip/carlosg/touchpad-gesture-devices-4.0] gdk/wayland: Assign logical pointer to touchpad gesture events




commit 7e14a87eca6de6fc88afbeaea696ae46724ca958
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Feb 25 00:47:09 2021 +0100

    gdk/wayland: Assign logical pointer to touchpad gesture events
    
    These events don't make sense on physical devices (for starters, they
    are relative to the logical pointer position). Use this device for
    those events, also happens to be what the upper parts expect of them.

 gdk/wayland/gdkdevice-wayland.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 8e3cef103d..66f3bf50fa 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -2534,7 +2534,7 @@ emit_gesture_swipe_event (GdkWaylandSeat          *seat,
   seat->pointer_info.time = _time;
 
   event = gdk_touchpad_event_new_swipe (seat->pointer_info.focus,
-                                        seat->pointer,
+                                        seat->logical_pointer,
                                         _time,
                                         device_get_modifiers (seat->logical_pointer),
                                         phase,
@@ -2630,7 +2630,7 @@ emit_gesture_pinch_event (GdkWaylandSeat          *seat,
   seat->pointer_info.time = _time;
 
   event = gdk_touchpad_event_new_pinch (seat->pointer_info.focus,
-                                        seat->pointer,
+                                        seat->logical_pointer,
                                         _time,
                                         device_get_modifiers (seat->logical_pointer),
                                         phase,


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