aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--types/tablet_v2/wlr_tablet_v2_tool.c14
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,