forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
177f6b377d
commit
68ced9b553
@ -2536,7 +2536,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,
|
||||
@ -2632,7 +2632,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,
|
||||
|
Loading…
Reference in New Issue
Block a user