aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/switch.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/input/switch.c')
-rw-r--r--sway/input/switch.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/input/switch.c b/sway/input/switch.c
index 32d9c7e0..f483cd23 100644
--- a/sway/input/switch.c
+++ b/sway/input/switch.c
@@ -33,8 +33,8 @@ static bool sway_switch_trigger_test(enum sway_switch_trigger trigger,
33} 33}
34 34
35static void execute_binding(struct sway_switch *sway_switch) { 35static 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 = server.session_lock.locked; 37 bool locked = server.session_lock.locked;
38 38
39 list_t *bindings = config->current_mode->switch_bindings; 39 list_t *bindings = config->current_mode->switch_bindings;
40 struct sway_switch_binding *matched_binding = NULL; 40 struct sway_switch_binding *matched_binding = NULL;
@@ -51,13 +51,13 @@ static void execute_binding(struct sway_switch *sway_switch) {
51 continue; 51 continue;
52 } 52 }
53 bool binding_locked = binding->flags & BINDING_LOCKED; 53 bool binding_locked = binding->flags & BINDING_LOCKED;
54 if (!binding_locked && input_inhibited) { 54 if (!binding_locked && locked) {
55 continue; 55 continue;
56 } 56 }
57 57
58 matched_binding = binding; 58 matched_binding = binding;
59 59
60 if (binding_locked == input_inhibited) { 60 if (binding_locked == locked) {
61 break; 61 break;
62 } 62 }
63 } 63 }