mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-03 06:46:38 -04:00
fix: only configure initialized layer
This commit is contained in:
parent
e1cf7db447
commit
0b9de30cb1
1 changed files with 1 additions and 1 deletions
2
maomao.c
2
maomao.c
|
|
@ -1681,7 +1681,7 @@ void arrangelayer(Monitor *m, struct wl_list *list, struct wlr_box *usable_area,
|
||||||
wl_list_for_each(l, list, link) {
|
wl_list_for_each(l, list, link) {
|
||||||
struct wlr_layer_surface_v1 *layer_surface = l->layer_surface;
|
struct wlr_layer_surface_v1 *layer_surface = l->layer_surface;
|
||||||
|
|
||||||
if (exclusive != (layer_surface->current.exclusive_zone > 0))
|
if (exclusive != (layer_surface->current.exclusive_zone > 0) || !layer_surface->initialized)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
wlr_scene_layer_surface_v1_configure(l->scene_layer, &full_area,
|
wlr_scene_layer_surface_v1_configure(l->scene_layer, &full_area,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue