From 6a40561e4cddae0f6c3325afd96c7f38e8f649d1 Mon Sep 17 00:00:00 2001 From: Markus Ongyerth Date: Thu, 17 May 2018 11:15:07 +0200 Subject: Fix clang build errors --- rootston/seat.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'rootston') diff --git a/rootston/seat.c b/rootston/seat.c index 3ca1404e..d49d71cc 100644 --- a/rootston/seat.c +++ b/rootston/seat.c @@ -201,7 +201,9 @@ static void handle_tool_button(struct wl_listener *listener, void *data) { struct wlr_event_tablet_tool_button *event = data; struct roots_tablet_tool_tool *roots_tool = event->tool->data; - wlr_send_tablet_v2_tablet_tool_button(roots_tool->tablet_v2_tool, event->button, event->state); + wlr_send_tablet_v2_tablet_tool_button(roots_tool->tablet_v2_tool, + (enum zwp_tablet_pad_v2_button_state)event->button, + (enum zwp_tablet_pad_v2_button_state)event->state); } static void handle_tablet_tool_set_cursor(struct wl_listener *listener, void *data) { @@ -757,7 +759,8 @@ static void handle_tablet_pad_button(struct wl_listener *listener, void *data) { event->group, event->mode, event->time_msec); wlr_send_tablet_v2_tablet_pad_button(pad->tablet_v2_pad, - event->button, event->time_msec, event->state); + event->button, event->time_msec, + (enum zwp_tablet_pad_v2_button_state)event->state); } static void seat_add_tablet_pad(struct roots_seat *seat, -- cgit v1.2.3