diff options
author | emersion <contact@emersion.fr> | 2018-05-02 22:09:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-02 22:09:11 +0100 |
commit | f3d0885524f4f1dc568baf21fcc8e387a316703f (patch) | |
tree | 6ffd7fcc8e249ce00c223c04fbbee1bfe3b314ce /sway/input/seat.c | |
parent | b45e2bd95e1843a56437541f3883d4d6431b3e0c (diff) | |
parent | 52aa245b246078a20475edce7d4b6e013d1d99e4 (diff) | |
download | sway-f3d0885524f4f1dc568baf21fcc8e387a316703f.tar.xz |
Merge pull request #1893 from swaywm/touch
Implement basic touch support
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index 8b9817da..e8bd6b36 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -315,6 +315,13 @@ static void seat_configure_keyboard(struct sway_seat *seat, } } +static void seat_configure_touch(struct sway_seat *seat, + struct sway_seat_device *sway_device) { + wlr_cursor_attach_input_device(seat->cursor->cursor, + sway_device->input_device->wlr_device); + seat_apply_input_config(seat, sway_device); +} + static void seat_configure_tablet_tool(struct sway_seat *seat, struct sway_seat_device *sway_device) { wlr_cursor_attach_input_device(seat->cursor->cursor, @@ -349,12 +356,14 @@ 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: + seat_configure_touch(seat, seat_device); + break; 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"); + wlr_log(L_DEBUG, "TODO: configure tablet pad"); break; } } |