aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/bar
diff options
context:
space:
mode:
authorMilkey Mouse <milkeymouse@meme.institute>2019-02-23 21:59:36 -0800
committerBrian Ashworth <bosrsf04@gmail.com>2019-02-24 20:05:47 -0500
commit2f7247e08a16610228067c9ec34d2b6d897e15fa (patch)
tree7cf9ef96257a196b12620cf3659a45635e818e7b /sway/commands/bar
parent2510e3df384d9ab7b27e66c27371ec44606f5d8e (diff)
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
bar->mode = strdup("hide");
} else if (strcasecmp("invisible", mode) == 0) {
bar->mode = strdup("invisible");
+ } else if (strcasecmp("overlay", mode) == 0) {
+ bar->mode = strdup("overlay");
} else {
return cmd_results_new(CMD_INVALID, "Invalid value %s", mode);
}