fix set of layersurface->popups and surface->data

This commit is contained in:
Leonardo Hernández Hernández 2022-11-13 16:57:41 -06:00
parent 60a98b87f3
commit 63d6de5866
No known key found for this signature in database
GPG Key ID: E538897EE11B9624

2
dwl.c
View File

@ -804,7 +804,7 @@ createlayersurface(struct wl_listener *listener, void *data)
layers[wlr_layer_surface->pending.layer], wlr_layer_surface); layers[wlr_layer_surface->pending.layer], wlr_layer_surface);
layersurface->scene = layersurface->scene_layer->tree; layersurface->scene = layersurface->scene_layer->tree;
layersurface->popups = wlr_layer_surface->surface->data = layersurface->popups = wlr_layer_surface->surface->data =
&wlr_scene_tree_create(layers[wlr_layer_surface->pending.layer])->node; wlr_scene_tree_create(layers[wlr_layer_surface->pending.layer]);
layersurface->scene->node.data = layersurface; layersurface->scene->node.data = layersurface;