backend/wayland: Add wlr_wl_backend_set_grab_input_shortcut

Note: For the function to work, keyboard_listener in
backend/wayland/seat.c now passes wlr_wl_seat instead of wlr_keyboard

by using this function, a compositor can specify
a keyboard shortcut that when pressed, will disable the
keyboard shortcuts and confine the pointer to the currently focused
wayland output, if the system compositor supports these features.

Signed-off-by: Lahav T <lahavts@gmail.com>
This commit is contained in:
Lahav T 2023-11-21 23:09:00 +02:00 committed by Lahav Tsur
parent 41494244df
commit fae0a7d493
5 changed files with 200 additions and 5 deletions

View file

@ -23,6 +23,8 @@ client_protos = [
'xdg-activation-v1',
'xdg-decoration-unstable-v1',
'xdg-shell',
'pointer-constraints-unstable-v1',
'keyboard-shortcuts-inhibit-unstable-v1',
]
foreach proto : client_protos