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]: 2f7247e08a
This commit is contained in:
Aleksei Bavshin 2024-08-17 15:30:24 -07:00
parent d177969f51
commit 4a6af0da99
No known key found for this signature in database
GPG Key ID: 4F071603387A382A
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ const Bar::bar_mode_map Bar::PRESET_MODES = { //
.visible = true}},
{"hide",
{//
.layer = bar_layer::TOP,
.layer = bar_layer::OVERLAY,
.exclusive = false,
.passthrough = false,
.visible = true}},
@ -49,7 +49,7 @@ const Bar::bar_mode_map Bar::PRESET_MODES = { //
.visible = false}},
{"overlay",
{//
.layer = bar_layer::TOP,
.layer = bar_layer::OVERLAY,
.exclusive = false,
.passthrough = true,
.visible = true}}};