Mykola Orliuk
70ffda3ea3
backend/wayland: Add registering multiple seats
2020-11-12 12:31:32 +01:00
Mykola Orliuk
85b0872650
backend/wayland: Link input devices with seats
2020-11-12 12:31:32 +01:00
Mykola Orliuk
40bfd9f8f7
backend/wayland: Bind seat listener to wlr_wl_seat
2020-11-12 12:31:32 +01:00
Isaac Freund
7693f61d81
Replace wlr_key_state with wl_keyboard_key_state
...
There's no reason to have duplicate enums
2020-11-11 10:58:38 +01:00
Mykola Orliuk
31aa7f4c95
backend/wayland: fix some keyboard/touch leaks
2020-10-18 21:25:25 +02:00
Mykola Orliuk
009cd634a2
backend/wayland: fix input creation error handling
2020-10-18 21:25:25 +02:00
Mykola Orliuk
41bf1c6871
backend/wayland: add error flow in create_wl_seat
2020-10-18 21:25:25 +02:00
Mykola Orliuk
1ac5257357
backend/wayland: factor out wlr_wl_seat
2020-10-18 16:28:12 +02:00
Mykola Orliuk
df417b7e95
backend/wayland: manage cursor for current pointer
2020-10-18 16:28:12 +02:00
Ilia Bozhinov
b98522b38f
backend/wayland: add touch support to the wayland backend
...
Goal currently is to get support working for a single output, thus there is only one touch device created.
Multi-output support is left for later.
2020-10-18 15:33:03 +02:00
Ilia Bozhinov
efe6414640
wayland: emit relative pointer events only for current pointer
2020-09-04 10:13:35 +02:00
Ilia Bozhinov
9feeb2738d
backend/wayland: destroy relative pointer when output is disconnected
...
Fixes #2243
Fixes #2106
2020-08-17 11:33:57 +02:00
Tudor Brindus
dc13bb827d
util: fix and move get_current_time_msec
into a util file
...
This commit makes `get_current_time_msec` correctly return milliseconds
as opposed to microseconds. It also considers the value of `tv_sec`, so
we don't lose occasionally go back in time by one second. Finally, the
function is moved into `util/time.cc` so that it can be reused elsewhere
without having to consider these pitfalls.
2020-06-06 00:09:19 +02:00
Simon Ser
b614ded3fc
backend/wayland: close keymap FD
...
We don't actually need the keymap. We need to close the FD or we will
run out of FDs.
2020-03-17 13:37:53 +01:00
Simon Ser
a3c699eee5
backend/wayland: fix seat caps handling
...
Previously, each time a wl_seat.capabilities event was received the
Wayland backend created new input devices. It now only does so the first
time.
Input devices are now destroyed when the cap is removed.
Closes: https://github.com/swaywm/sway/issues/5055
2020-03-04 09:57:10 +01:00
Simon Ser
613f9c6f8d
backend/wayland: rename wl_seat.c to seat.c
...
I never got why we have a wl_ prefix here.
2020-03-04 03:21:40 +01:00