input/seat: drop exclusive_client

This was a input-inhibit concept.
This commit is contained in:
Simon Ser 2023-11-22 00:49:23 +01:00
parent a6ef12d968
commit dbd70faf2e
6 changed files with 4 additions and 18 deletions

View file

@ -405,8 +405,7 @@ static void handle_key_event(struct sway_keyboard *keyboard,
char *device_identifier = input_device_get_identifier(wlr_device);
bool exact_identifier = keyboard->wlr->group != NULL;
seat_idle_notify_activity(seat, IDLE_SOURCE_KEYBOARD);
bool input_inhibited = seat->exclusive_client != NULL ||
server.session_lock.locked;
bool input_inhibited = server.session_lock.locked;
struct sway_keyboard_shortcuts_inhibitor *sway_inhibitor =
keyboard_shortcuts_inhibitor_get_for_focused_surface(seat);
bool shortcuts_inhibited = sway_inhibitor && sway_inhibitor->inhibitor->active;