diff options
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index 9f44955c..fccb739b 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -284,6 +284,12 @@ static void seat_configure_keyboard(struct sway_seat *seat, | |||
284 | } | 284 | } |
285 | } | 285 | } |
286 | 286 | ||
287 | static void seat_configure_tablet_tool(struct sway_seat *seat, | ||
288 | struct sway_seat_device *sway_device) { | ||
289 | wlr_cursor_attach_input_device(seat->cursor->cursor, | ||
290 | sway_device->input_device->wlr_device); | ||
291 | } | ||
292 | |||
287 | static struct sway_seat_device *seat_get_device(struct sway_seat *seat, | 293 | static struct sway_seat_device *seat_get_device(struct sway_seat *seat, |
288 | struct sway_input_device *input_device) { | 294 | struct sway_input_device *input_device) { |
289 | struct sway_seat_device *seat_device = NULL; | 295 | struct sway_seat_device *seat_device = NULL; |
@@ -311,9 +317,11 @@ void seat_configure_device(struct sway_seat *seat, | |||
311 | case WLR_INPUT_DEVICE_KEYBOARD: | 317 | case WLR_INPUT_DEVICE_KEYBOARD: |
312 | seat_configure_keyboard(seat, seat_device); | 318 | seat_configure_keyboard(seat, seat_device); |
313 | break; | 319 | break; |
314 | case WLR_INPUT_DEVICE_TOUCH: | ||
315 | case WLR_INPUT_DEVICE_TABLET_PAD: | ||
316 | case WLR_INPUT_DEVICE_TABLET_TOOL: | 320 | case WLR_INPUT_DEVICE_TABLET_TOOL: |
321 | seat_configure_tablet_tool(seat, seat_device); | ||
322 | break; | ||
323 | case WLR_INPUT_DEVICE_TABLET_PAD: | ||
324 | case WLR_INPUT_DEVICE_TOUCH: | ||
317 | wlr_log(L_DEBUG, "TODO: configure other devices"); | 325 | wlr_log(L_DEBUG, "TODO: configure other devices"); |
318 | break; | 326 | break; |
319 | } | 327 | } |