mirror of
https://github.com/swaywm/sway.git
synced 2026-04-18 06:46:56 -04:00
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:
parent
9bb45a4037
commit
31aad46c4f
4 changed files with 24 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue