aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
authorLibravatar Tudor Brindus <me@tbrindus.ca>2020-05-02 13:25:27 -0400
committerLibravatar Simon Ser <contact@emersion.fr>2020-05-02 21:16:21 +0200
commit52bd6aecf24af2aefc202d73aeef205cd62fa8b8 (patch)
tree1ebda9c7dd8b8595425d977f4f3c8b7ab39cd31b /sway/input/cursor.c
parentinput: rename pointer handlers to be unambiguous (diff)
downloadsway-52bd6aecf24af2aefc202d73aeef205cd62fa8b8.tar.gz
sway-52bd6aecf24af2aefc202d73aeef205cd62fa8b8.tar.zst
sway-52bd6aecf24af2aefc202d73aeef205cd62fa8b8.zip
input/cursor: remove erroneous cast for tablet tool button
The type expected by wlroots is uint32_t, which `event->button` already is.
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r--sway/input/cursor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 90ed3b5c..0b11c924 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -739,8 +739,7 @@ static void handle_tool_button(struct wl_listener *listener, void *data) {
739 } 739 }
740 740
741 wlr_tablet_v2_tablet_tool_notify_button(sway_tool->tablet_v2_tool, 741 wlr_tablet_v2_tablet_tool_notify_button(sway_tool->tablet_v2_tool,
742 (enum zwp_tablet_pad_v2_button_state)event->button, 742 event->button, (enum zwp_tablet_pad_v2_button_state)event->state);
743 (enum zwp_tablet_pad_v2_button_state)event->state);
744} 743}
745 744
746static void check_constraint_region(struct sway_cursor *cursor) { 745static void check_constraint_region(struct sway_cursor *cursor) {