Implement ext-session-lock-v1

This commit is contained in:
Daniel De Graaf 2022-03-08 21:14:26 -05:00 committed by Simon Ser
parent 70d30ac72b
commit 519038a7e9
11 changed files with 290 additions and 7 deletions

View file

@ -34,7 +34,8 @@ static bool sway_switch_trigger_test(enum sway_switch_trigger trigger,
static void execute_binding(struct sway_switch *sway_switch) {
struct sway_seat* seat = sway_switch->seat_device->sway_seat;
bool input_inhibited = seat->exclusive_client != NULL;
bool input_inhibited = seat->exclusive_client != NULL ||
server.session_lock.locked;
list_t *bindings = config->current_mode->switch_bindings;
struct sway_switch_binding *matched_binding = NULL;