diff options
author | 2018-10-20 15:17:51 +0200 | |
---|---|---|
committer | 2018-10-20 15:17:51 +0200 | |
commit | c75098e96fabad5539e0114346dba7e24cee6ffe (patch) | |
tree | 84a1b8a8711aff14c00ac8c96c6f31c8e5be26af /swaybar | |
parent | Merge pull request #2890 from mihaicmn/create-default-seat (diff) | |
parent | Put swaybar in overlay layer when using mode hide (diff) | |
download | sway-c75098e96fabad5539e0114346dba7e24cee6ffe.tar.gz sway-c75098e96fabad5539e0114346dba7e24cee6ffe.tar.zst sway-c75098e96fabad5539e0114346dba7e24cee6ffe.zip |
Merge pull request #2887 from RyanDwyer/bar-overlay
Put swaybar in overlay layer when using mode hide
Diffstat (limited to 'swaybar')
-rw-r--r-- | swaybar/bar.c | 2 |
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) { | |||
102 | bool hidden = strcmp(config->mode, "hide") == 0; | 102 | bool hidden = strcmp(config->mode, "hide") == 0; |
103 | output->layer_surface = zwlr_layer_shell_v1_get_layer_surface( | 103 | output->layer_surface = zwlr_layer_shell_v1_get_layer_surface( |
104 | bar->layer_shell, output->surface, output->output, | 104 | bar->layer_shell, output->surface, output->output, |
105 | hidden ? ZWLR_LAYER_SHELL_V1_LAYER_TOP : | 105 | hidden ? ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY : |
106 | ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM, "panel"); | 106 | ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM, "panel"); |
107 | assert(output->layer_surface); | 107 | assert(output->layer_surface); |
108 | zwlr_layer_surface_v1_add_listener(output->layer_surface, | 108 | zwlr_layer_surface_v1_add_listener(output->layer_surface, |