diff options
author | Tudor Brindus <me@tbrindus.ca> | 2020-05-04 17:44:08 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-05-14 18:45:19 +0200 |
commit | 74c0d03f006b308229996441661f3455143a98a5 (patch) | |
tree | 9d5361fb4c5ec2a41e8b7cc33d24983db35c26ad | |
parent | 42e485dcc306f386aa8d3b8907c77ea3316360d5 (diff) |
tablet: pass motion events to implicitly grabbed surface
Refs swaywm/sway#5302.
-rw-r--r-- | types/tablet_v2/wlr_tablet_v2_tool.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/types/tablet_v2/wlr_tablet_v2_tool.c b/types/tablet_v2/wlr_tablet_v2_tool.c index e2936bcb..c5fe15a7 100644 --- a/types/tablet_v2/wlr_tablet_v2_tool.c +++ b/types/tablet_v2/wlr_tablet_v2_tool.c @@ -792,18 +792,6 @@ static void implicit_tool_up(struct wlr_tablet_tool_v2_grab *grab) { check_and_release_implicit_grab(grab); } -/* Only send the motion event, when we are over the surface for now */ -static void implicit_tool_motion( - struct wlr_tablet_tool_v2_grab *grab, double x, double y) { - struct implicit_grab_state *state = grab->data; - if (state->focused != state->original) { - return; - } - - wlr_send_tablet_v2_tablet_tool_motion(grab->tool, x, y); -} - - static void implicit_tool_button( struct wlr_tablet_tool_v2_grab *grab, uint32_t button, enum zwp_tablet_pad_v2_button_state state) { @@ -822,7 +810,7 @@ static const struct wlr_tablet_tool_v2_grab_interface .proximity_in = implicit_tool_proximity_in, .down = implicit_tool_down, .up = implicit_tool_up, - .motion = implicit_tool_motion, + .motion = default_tool_motion, .pressure = default_tool_pressure, .distance = default_tool_distance, .tilt = default_tool_tilt, |