Skip to content

Commit 4a6af0d

Browse files
committed
fix(bar): use overlay layer for hide and overlay modes
This fixes a major inconsistency with the swaybar implementation of these modes[^1]. `overlay` layer no longer has security implications due to a wide adoption of `ext-session-lock`, so it's safe to use. Following config will restore the previous behavior: ```json "modes": { "hide": { "layer": "top" }, "overlay": { "layer": "top" } }, ``` [^1]: swaywm/sway@2f7247e
1 parent d177969 commit 4a6af0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bar.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const Bar::bar_mode_map Bar::PRESET_MODES = { //
3737
.visible = true}},
3838
{"hide",
3939
{//
40-
.layer = bar_layer::TOP,
40+
.layer = bar_layer::OVERLAY,
4141
.exclusive = false,
4242
.passthrough = false,
4343
.visible = true}},
@@ -49,7 +49,7 @@ const Bar::bar_mode_map Bar::PRESET_MODES = { //
4949
.visible = false}},
5050
{"overlay",
5151
{//
52-
.layer = bar_layer::TOP,
52+
.layer = bar_layer::OVERLAY,
5353
.exclusive = false,
5454
.passthrough = true,
5555
.visible = true}}};

0 commit comments

Comments
 (0)