aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/keyboard.c
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2023-11-22 00:49:23 +0100
committerLibravatar Simon Ser <contact@emersion.fr>2023-12-13 10:11:35 +0100
commitdbd70faf2e0a8115f681995801fd4b82f4682604 (patch)
treef9c5f8dbf55396f1d7df172bf57386e13a3ce2f7 /sway/input/keyboard.c
parentDetect proprietary DisplayLink drivers (diff)
downloadsway-dbd70faf2e0a8115f681995801fd4b82f4682604.tar.gz
sway-dbd70faf2e0a8115f681995801fd4b82f4682604.tar.zst
sway-dbd70faf2e0a8115f681995801fd4b82f4682604.zip
input/seat: drop exclusive_client
This was a input-inhibit concept.
Diffstat (limited to 'sway/input/keyboard.c')
-rw-r--r--sway/input/keyboard.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/input/keyboard.c b/sway/input/keyboard.c
index 8927287f..577ec9f5 100644
--- a/sway/input/keyboard.c
+++ b/sway/input/keyboard.c
@@ -405,8 +405,7 @@ static void handle_key_event(struct sway_keyboard *keyboard,
405 char *device_identifier = input_device_get_identifier(wlr_device); 405 char *device_identifier = input_device_get_identifier(wlr_device);
406 bool exact_identifier = keyboard->wlr->group != NULL; 406 bool exact_identifier = keyboard->wlr->group != NULL;
407 seat_idle_notify_activity(seat, IDLE_SOURCE_KEYBOARD); 407 seat_idle_notify_activity(seat, IDLE_SOURCE_KEYBOARD);
408 bool input_inhibited = seat->exclusive_client != NULL || 408 bool input_inhibited = server.session_lock.locked;
409 server.session_lock.locked;
410 struct sway_keyboard_shortcuts_inhibitor *sway_inhibitor = 409 struct sway_keyboard_shortcuts_inhibitor *sway_inhibitor =
411 keyboard_shortcuts_inhibitor_get_for_focused_surface(seat); 410 keyboard_shortcuts_inhibitor_get_for_focused_surface(seat);
412 bool shortcuts_inhibited = sway_inhibitor && sway_inhibitor->inhibitor->active; 411 bool shortcuts_inhibited = sway_inhibitor && sway_inhibitor->inhibitor->active;