summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-04-24 00:25:49 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-04-24 07:14:48 -0600
commit583ceff6f6129b5c569ad1eb499cffc526a14d1c (patch)
treebffca87361c63ccf1227436a7437b5ea4d5a0902 /include
parentUpdate for wlroots#1660 (diff)
downloadsway-583ceff6f6129b5c569ad1eb499cffc526a14d1c.tar.gz
sway-583ceff6f6129b5c569ad1eb499cffc526a14d1c.tar.zst
sway-583ceff6f6129b5c569ad1eb499cffc526a14d1c.zip
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')
-rw-r--r--include/swaybar/bar.h1
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 {
23 // only relevant when bar is in "hide" mode 23 // only relevant when bar is in "hide" mode
24 bool visible_by_modifier; 24 bool visible_by_modifier;
25 bool visible_by_urgency; 25 bool visible_by_urgency;
26 bool visible_by_mode;
26 bool visible; 27 bool visible;
27 28
28 struct wl_display *display; 29 struct wl_display *display;