Skip to content

Commit

Permalink
Put swaybar in overlay layer when using mode hide
Browse files Browse the repository at this point in the history
This allows the bar to render over fullscreen views.
  • Loading branch information
RyanDwyer committed Oct 20, 2018
1 parent 75ea19c commit a4ce522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swaybar/bar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a4ce522

Please sign in to comment.