aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/bar
diff options
context:
space:
mode:
authorLibravatar Milkey Mouse <milkeymouse@meme.institute>2019-02-23 21:59:36 -0800
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-02-24 20:05:47 -0500
commit2f7247e08a16610228067c9ec34d2b6d897e15fa (patch)
tree7cf9ef96257a196b12620cf3659a45635e818e7b /sway/commands/bar
parentadd --i3 flag to hide_edge_borders (diff)
downloadsway-2f7247e08a16610228067c9ec34d2b6d897e15fa.tar.gz
sway-2f7247e08a16610228067c9ec34d2b6d897e15fa.tar.zst
sway-2f7247e08a16610228067c9ec34d2b6d897e15fa.zip
swaybar: add overlay mode (fix #1620)
Overlay mode puts the bar above normal windows and passes through/ignores any touch/mouse/keyboard events that would be sent to it.
Diffstat (limited to 'sway/commands/bar')
-rw-r--r--sway/commands/bar/mode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/commands/bar/mode.c b/sway/commands/bar/mode.c
index 68a80abf..1081ad4b 100644
--- a/sway/commands/bar/mode.c
+++ b/sway/commands/bar/mode.c
@@ -20,6 +20,8 @@ static struct cmd_results *bar_set_mode(struct bar_config *bar, const char *mode
20 bar->mode = strdup("hide"); 20 bar->mode = strdup("hide");
21 } else if (strcasecmp("invisible", mode) == 0) { 21 } else if (strcasecmp("invisible", mode) == 0) {
22 bar->mode = strdup("invisible"); 22 bar->mode = strdup("invisible");
23 } else if (strcasecmp("overlay", mode) == 0) {
24 bar->mode = strdup("overlay");
23 } else { 25 } else {
24 return cmd_results_new(CMD_INVALID, "Invalid value %s", mode); 26 return cmd_results_new(CMD_INVALID, "Invalid value %s", mode);
25 } 27 }