From 2f7247e08a16610228067c9ec34d2b6d897e15fa Mon Sep 17 00:00:00 2001 From: Milkey Mouse Date: Sat, 23 Feb 2019 21:59:36 -0800 Subject: 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. --- sway/commands/bar/mode.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sway/commands/bar') 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); } -- cgit v1.2.3