mirror of
https://github.com/swaywm/sway.git
synced 2026-04-22 06:46:27 -04:00
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:
parent
af8a5a8918
commit
3cde99d85e
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue