mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2025-01-29 08:34:59 +01:00
Don't apply exclusive zones of unmapped layer-shell surfaces
Backport of [1]. [1]: https://github.com/emersion/rootston/pull/15/files
This commit is contained in:
parent
f2a60d2d05
commit
e1eda8a09c
1 changed files with 2 additions and 1 deletions
|
@ -88,7 +88,8 @@ static void arrange_layer(struct sway_output *output, struct wl_list *list,
|
|||
wl_list_for_each(sway_layer, list, link) {
|
||||
struct wlr_layer_surface_v1 *layer = sway_layer->layer_surface;
|
||||
struct wlr_layer_surface_v1_state *state = &layer->current;
|
||||
if (exclusive != (state->exclusive_zone > 0)) {
|
||||
if (!layer->mapped ||
|
||||
exclusive != (state->exclusive_zone > 0)) {
|
||||
continue;
|
||||
}
|
||||
struct wlr_box bounds;
|
||||
|
|
Loading…
Add table
Reference in a new issue