commit 52bd6aecf24af2aefc202d73aeef205cd62fa8b8
parent e262f93d0a93c52b72fa1e64c29021ef2784d5fb
Author: Tudor Brindus <me@tbrindus.ca>
Date: Sat, 2 May 2020 13:25:27 -0400
input/cursor: remove erroneous cast for tablet tool button
The type expected by wlroots is uint32_t, which `event->button`
already is.
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git 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) {
}
wlr_tablet_v2_tablet_tool_notify_button(sway_tool->tablet_v2_tool,
- (enum zwp_tablet_pad_v2_button_state)event->button,
- (enum zwp_tablet_pad_v2_button_state)event->state);
+ event->button, (enum zwp_tablet_pad_v2_button_state)event->state);
}
static void check_constraint_region(struct sway_cursor *cursor) {