From f64962ace8ac2001b622af9571e9147813a6b3b9 Mon Sep 17 00:00:00 2001 From: Markus Ongyerth Date: Mon, 23 Jul 2018 10:08:43 +0200 Subject: tablet-v2 tool: Implement implicit grab Implement the tablet-v2 tablet tool's implicit grab semantics for buttons and tip. This avoids losing focus (to other [sub]surfaces) when a button is held, or the tip is down. This should help when the device is used close to a surface's border and would otherwise have to be very precise. --- include/wlr/types/wlr_tablet_v2.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/wlr/types/wlr_tablet_v2.h b/include/wlr/types/wlr_tablet_v2.h index 3d06bf56..e2a39392 100644 --- a/include/wlr/types/wlr_tablet_v2.h +++ b/include/wlr/types/wlr_tablet_v2.h @@ -240,6 +240,9 @@ struct wlr_tablet_tool_v2_grab_interface { void wlr_tablet_tool_v2_start_grab(struct wlr_tablet_v2_tablet_tool *tool, struct wlr_tablet_tool_v2_grab *grab); void wlr_tablet_tool_v2_end_grab(struct wlr_tablet_v2_tablet_tool *tool); +void wlr_tablet_tool_v2_start_implicit_grab(struct wlr_tablet_v2_tablet_tool *tool); + + uint32_t wlr_send_tablet_v2_tablet_pad_enter( struct wlr_tablet_v2_tablet_pad *pad, struct wlr_tablet_v2_tablet *tablet, -- cgit v1.2.3