Make floating modifier adhere to shortcuts_inhibitor

floating_modifier is currently triggered when the modifier is pressed,
and when a mouse's left or right button is pressed even if there is an
existing shortcuts_inhibitor.  This changes the default behavior to only
change the current seatop when there is no active shortcuts_inhibitor.
I've added an additional optional `--inhibited` option to the
`floating_modifier` command.  When `--inhibited` is passed, the seatop
is changed regardless of if there is an active shortcuts_inhibitor.
This commit is contained in:
Alex Maese 2023-08-12 11:37:30 -05:00 committed by ForTheReallys
parent 9bb45a4037
commit 31aad46c4f
4 changed files with 24 additions and 8 deletions

View file

@ -507,6 +507,7 @@ struct sway_config {
struct bar_config *current_bar;
uint32_t floating_mod;
bool floating_mod_inverse;
bool floating_mod_inhibited;
uint32_t dragging_key;
uint32_t resizing_key;
char *floating_scroll_up_cmd;