aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-10-20 16:48:43 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-10-20 16:48:43 +1000
commita4ce5227c2bc8f3699e7d98b83badcdbf2547dfa (patch)
tree162d23fe218cf4e54b3e07937265477e3cef4873
parent75ea19c71b08e4b3dd1ad053944724fd91dc04bd (diff)
downloadsway-a4ce5227c2bc8f3699e7d98b83badcdbf2547dfa.tar.xz
Put swaybar in overlay layer when using mode hide
This allows the bar to render over fullscreen views.
-rw-r--r--swaybar/bar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/bar.c b/swaybar/bar.c
index 5e9767b2..fa761925 100644
--- a/swaybar/bar.c
+++ b/swaybar/bar.c
@@ -102,7 +102,7 @@ static void add_layer_surface(struct swaybar_output *output) {
bool hidden = strcmp(config->mode, "hide") == 0;
output->layer_surface = zwlr_layer_shell_v1_get_layer_surface(
bar->layer_shell, output->surface, output->output,
- hidden ? ZWLR_LAYER_SHELL_V1_LAYER_TOP :
+ hidden ? ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY :
ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM, "panel");
assert(output->layer_surface);
zwlr_layer_surface_v1_add_listener(output->layer_surface,