diff options
author | Milkey Mouse <milkeymouse@meme.institute> | 2019-02-23 21:59:36 -0800 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-02-24 20:05:47 -0500 |
commit | 2f7247e08a16610228067c9ec34d2b6d897e15fa (patch) | |
tree | 7cf9ef96257a196b12620cf3659a45635e818e7b /sway/commands/bar | |
parent | add --i3 flag to hide_edge_borders (diff) | |
download | sway-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.c | 2 |
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 | } |