diff options
author | Tony Crisci <[email protected]> | 2018-04-08 12:47:56 -0400 |
---|---|---|
committer | Tony Crisci <[email protected]> | 2018-04-08 12:47:56 -0400 |
commit | ae78f6fb9383392915421784cb97910bbbfb60f2 (patch) | |
tree | ec7daa6d31dfc6cbe3ff8e9db1bba2754077eedb /sway/input/seat.c | |
parent | 70b33342fec0e0cc720cbb62a059c40a34c5314f (diff) | |
parent | ebabcc8b44846eaccdd34e3e48aa07d6bf7b58a7 (diff) |
Merge branch 'wlroots' into focus-inactive-fixes
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, } } +static void seat_configure_tablet_tool(struct sway_seat *seat, + struct sway_seat_device *sway_device) { + wlr_cursor_attach_input_device(seat->cursor->cursor, + sway_device->input_device->wlr_device); +} + static struct sway_seat_device *seat_get_device(struct sway_seat *seat, struct sway_input_device *input_device) { struct sway_seat_device *seat_device = NULL; @@ -311,9 +317,11 @@ void seat_configure_device(struct sway_seat *seat, case WLR_INPUT_DEVICE_KEYBOARD: seat_configure_keyboard(seat, seat_device); break; - case WLR_INPUT_DEVICE_TOUCH: - case WLR_INPUT_DEVICE_TABLET_PAD: case WLR_INPUT_DEVICE_TABLET_TOOL: + seat_configure_tablet_tool(seat, seat_device); + break; + case WLR_INPUT_DEVICE_TABLET_PAD: + case WLR_INPUT_DEVICE_TOUCH: wlr_log(L_DEBUG, "TODO: configure other devices"); break; } |