diff options
author | Daniel De Graaf <code@danieldg.net> | 2022-03-08 21:14:26 -0500 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-04-29 09:06:36 +0200 |
commit | 519038a7e903caae731007b276f5666a341498e9 (patch) | |
tree | b62cb6728503c5e0940c08bb8cb30b81aab9e830 /sway/input/switch.c | |
parent | xkb_switch_layout: fix relative layout switches (diff) | |
download | sway-519038a7e903caae731007b276f5666a341498e9.tar.gz sway-519038a7e903caae731007b276f5666a341498e9.tar.zst sway-519038a7e903caae731007b276f5666a341498e9.zip |
Implement ext-session-lock-v1
Diffstat (limited to 'sway/input/switch.c')
-rw-r--r-- | sway/input/switch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/input/switch.c b/sway/input/switch.c index af5a2385..ac4baece 100644 --- a/sway/input/switch.c +++ b/sway/input/switch.c | |||
@@ -34,7 +34,8 @@ static bool sway_switch_trigger_test(enum sway_switch_trigger trigger, | |||
34 | 34 | ||
35 | static void execute_binding(struct sway_switch *sway_switch) { | 35 | static void execute_binding(struct sway_switch *sway_switch) { |
36 | struct sway_seat* seat = sway_switch->seat_device->sway_seat; | 36 | struct sway_seat* seat = sway_switch->seat_device->sway_seat; |
37 | bool input_inhibited = seat->exclusive_client != NULL; | 37 | bool input_inhibited = seat->exclusive_client != NULL || |
38 | server.session_lock.locked; | ||
38 | 39 | ||
39 | list_t *bindings = config->current_mode->switch_bindings; | 40 | list_t *bindings = config->current_mode->switch_bindings; |
40 | struct sway_switch_binding *matched_binding = NULL; | 41 | struct sway_switch_binding *matched_binding = NULL; |