diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-04-24 00:25:49 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-04-24 07:14:48 -0600 |
commit | 583ceff6f6129b5c569ad1eb499cffc526a14d1c (patch) | |
tree | bffca87361c63ccf1227436a7437b5ea4d5a0902 /include/swaybar | |
parent | b6e55064fe2422bcf2694a2ce97899108a75f077 (diff) |
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.
Diffstat (limited to 'include/swaybar')
-rw-r--r-- | include/swaybar/bar.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h index 031993b5..84619237 100644 --- a/include/swaybar/bar.h +++ b/include/swaybar/bar.h @@ -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; |