mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
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.
This commit is contained in:
parent
2510e3df38
commit
2f7247e08a
4 changed files with 21 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue