aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorTudor Brindus <me@tbrindus.ca>2020-05-04 17:45:01 -0400
committerSimon Ser <contact@emersion.fr>2020-05-14 18:45:19 +0200
commit7693fdb8a78d00e25d59f6399e89ba0e98670493 (patch)
tree826bd5b3ddc553543453626ddb9855275883ad6a /include/wlr
parent74c0d03f006b308229996441661f3455143a98a5 (diff)
tablet: expose wlr_tablet_tool_v2_has_implicit_grab function
This is necessary so that sway can determine when to start emulating pointer events -- it shouldn't start doing so during an implicit grab, even if the pen is over a surface that doesn't bind tablet input. Refs swaywm/sway#5302.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_tablet_v2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_tablet_v2.h b/include/wlr/types/wlr_tablet_v2.h
index 72d3abd3..4483a578 100644
--- a/include/wlr/types/wlr_tablet_v2.h
+++ b/include/wlr/types/wlr_tablet_v2.h
@@ -253,6 +253,8 @@ 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);
+bool wlr_tablet_tool_v2_has_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,