diff options
author | Tudor Brindus <me@tbrindus.ca> | 2020-06-14 17:21:38 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-06-18 22:35:01 +0200 |
commit | d328c2439c47fbbb24f74fd26e1a88ad8aaa3ace (patch) | |
tree | 3ad5263b2cc20e5bf2fe6e0352058e2db30993ce /include | |
parent | input/cursor: send idle events based off device type, not input type (diff) | |
download | sway-d328c2439c47fbbb24f74fd26e1a88ad8aaa3ace.tar.gz sway-d328c2439c47fbbb24f74fd26e1a88ad8aaa3ace.tar.zst sway-d328c2439c47fbbb24f74fd26e1a88ad8aaa3ace.zip |
input/pointer: don't trigger pointer bindings for emulated input
Prior to this commit, a tablet device could trigger mouse button down
bindings if the pen was pressed on a surface that didn't bind tablet
handlers -- but it wouldn't if the surface did bind tablet handlers.
We should expose consistent behavior to users so that they don't have to
care about emulated vs. non-emulated input, so stop triggering bindings
for any non-pointer devices.
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/input/cursor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sway/input/cursor.h b/include/sway/input/cursor.h index c2e2228a..4c130faf 100644 --- a/include/sway/input/cursor.h +++ b/include/sway/input/cursor.h | |||
@@ -91,7 +91,7 @@ void cursor_rebase_all(void); | |||
91 | void cursor_update_image(struct sway_cursor *cursor, struct sway_node *node); | 91 | void cursor_update_image(struct sway_cursor *cursor, struct sway_node *node); |
92 | 92 | ||
93 | void cursor_handle_activity(struct sway_cursor *cursor, | 93 | void cursor_handle_activity(struct sway_cursor *cursor, |
94 | struct wlr_input_device *device); | 94 | struct wlr_input_device *device); |
95 | void cursor_unhide(struct sway_cursor *cursor); | 95 | void cursor_unhide(struct sway_cursor *cursor); |
96 | int cursor_get_timeout(struct sway_cursor *cursor); | 96 | int cursor_get_timeout(struct sway_cursor *cursor); |
97 | 97 | ||