shortcuts_inhibitor: default to disabled

This reduces surprises for the user. The shortcuts inhibitor can still
be enabled with criteria in the config.
This commit is contained in:
Ronan Pigott 2022-11-25 20:05:47 -07:00
parent af8a5a8918
commit 3cde99d85e
2 changed files with 2 additions and 2 deletions

View file

@ -209,7 +209,7 @@ enum seat_config_allow_constrain {
}; };
enum seat_config_shortcuts_inhibit { 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_ENABLE,
SHORTCUTS_INHIBIT_DISABLE, SHORTCUTS_INHIBIT_DISABLE,
}; };

View file

@ -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 * Here we deny to honour the inhibitor by never sending the
* activate signal. We can not, however, destroy the inhibitor * activate signal. We can not, however, destroy the inhibitor