From 3cde99d85eed877e528620d62d9ecc4bece0515b Mon Sep 17 00:00:00 2001 From: Ronan Pigott Date: Fri, 25 Nov 2022 20:05:47 -0700 Subject: [PATCH] shortcuts_inhibitor: default to disabled This reduces surprises for the user. The shortcuts inhibitor can still be enabled with criteria in the config. --- include/sway/config.h | 2 +- sway/input/input-manager.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/sway/config.h b/include/sway/config.h index 190ab13b0..954a05867 100644 --- a/include/sway/config.h +++ b/include/sway/config.h @@ -209,7 +209,7 @@ enum seat_config_allow_constrain { }; enum seat_config_shortcuts_inhibit { - SHORTCUTS_INHIBIT_DEFAULT, // the default is currently enabled + SHORTCUTS_INHIBIT_DEFAULT, // the default is currently disabled SHORTCUTS_INHIBIT_ENABLE, SHORTCUTS_INHIBIT_DISABLE, }; diff --git a/sway/input/input-manager.c b/sway/input/input-manager.c index 26eefc8a1..ae269077c 100644 --- a/sway/input/input-manager.c +++ b/sway/input/input-manager.c @@ -363,7 +363,7 @@ static void handle_keyboard_shortcuts_inhibit_new_inhibitor( } } - if (inhibit == SHORTCUTS_INHIBIT_DISABLE) { + if (inhibit != SHORTCUTS_INHIBIT_ENABLE) { /** * Here we deny to honour the inhibitor by never sending the * activate signal. We can not, however, destroy the inhibitor