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