store the layersurface pointer in l->popups->node.data as well

This commit is contained in:
Leonardo Hernández Hernández 2023-12-07 14:18:03 -06:00
parent 28ec843aee
commit 393078d80c
No known key found for this signature in database
GPG key ID: E538897EE11B9624

2
dwl.c
View file

@ -816,7 +816,7 @@ createlayersurface(struct wl_listener *listener, void *data)
l->scene = l->scene_layer->tree;
l->popups = surface->data = wlr_scene_tree_create(layer_surface->current.layer
< ZWLR_LAYER_SHELL_V1_LAYER_TOP ? layers[LyrTop] : scene_layer);
l->scene->node.data = l;
l->scene->node.data = l->popups->node.data = l;
wl_list_insert(&l->mon->layers[layer_surface->pending.layer],&l->link);