Mykola Orliuk
44c4773d58
backend/wayland: Use seat name in input names
4 years ago
Mykola Orliuk
70ffda3ea3
backend/wayland: Add registering multiple seats
4 years ago
Mykola Orliuk
85b0872650
backend/wayland: Link input devices with seats
4 years ago
Mykola Orliuk
40bfd9f8f7
backend/wayland: Bind seat listener to wlr_wl_seat
4 years ago
Isaac Freund
7693f61d81
Replace wlr_key_state with wl_keyboard_key_state
...
There's no reason to have duplicate enums
4 years ago
Mykola Orliuk
31aa7f4c95
backend/wayland: fix some keyboard/touch leaks
4 years ago
Mykola Orliuk
009cd634a2
backend/wayland: fix input creation error handling
4 years ago
Mykola Orliuk
41bf1c6871
backend/wayland: add error flow in create_wl_seat
4 years ago
Mykola Orliuk
1ac5257357
backend/wayland: factor out wlr_wl_seat
4 years ago
Mykola Orliuk
df417b7e95
backend/wayland: manage cursor for current pointer
4 years ago
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.
4 years ago
Ilia Bozhinov
efe6414640
wayland: emit relative pointer events only for current pointer
4 years ago
Ilia Bozhinov
9feeb2738d
backend/wayland: destroy relative pointer when output is disconnected
...
Fixes #2243
Fixes #2106
4 years ago
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.
5 years ago
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.
5 years ago
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
5 years ago
Simon Ser
613f9c6f8d
backend/wayland: rename wl_seat.c to seat.c
...
I never got why we have a wl_ prefix here.
5 years ago