mirror of
https://github.com/swaywm/sway.git
synced 2025-04-04 11:27:47 +03:00
swaybar: hide mode visibility improvements
This allows swaybar to become visible when the mode changes (to any mode other than the default). swaybar will be hidden again when the modifier is pressed and released or when switching back to the default mode. This also applies the same logic to visible by urgency to hide swaybar when the modifier is pressed and released. These changes are to match i3's behavior.
This commit is contained in:
parent
b6e55064fe
commit
583ceff6f6
3 changed files with 12 additions and 1 deletions
|
@ -23,6 +23,7 @@ struct swaybar {
|
|||
// only relevant when bar is in "hide" mode
|
||||
bool visible_by_modifier;
|
||||
bool visible_by_urgency;
|
||||
bool visible_by_mode;
|
||||
bool visible;
|
||||
|
||||
struct wl_display *display;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue