aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2025-04-16 17:32:47 +0530
committerFurkan Sahin <furkan-dev@proton.me>2025-04-16 17:32:47 +0530
commit5c681c6e2209abb046e7b2f65dc21b809f41b900 (patch)
tree3fe4f6aa44205614982a6fa30af18814a4438db6
parent8cf370d1c0d24275377b73c82f494fbe5648f783 (diff)
layer_shell: destroy layer_surface on assigned output destruction
According to the spec, the closed event should be sent when the surface is no longer shown, because the output may have been destroyed or the user may have asked for it to be removed. In such cases, the clients should destroy the resource. This fixes mako not being able to show notifications if the assigned output was destroyed while a notificataion was still visible Fixes: f2f4af868bfa ("scene_graph: Port layer_shell")
-rw-r--r--sway/desktop/layer_shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c
index 05faa465..b14a9a4b 100644
--- a/sway/desktop/layer_shell.c
+++ b/sway/desktop/layer_shell.c
@@ -221,7 +221,7 @@ static void handle_output_destroy(struct wl_listener *listener, void *data) {
wl_container_of(listener, layer, output_destroy);
layer->output = NULL;
- wlr_scene_node_destroy(&layer->scene->tree->node);
+ wlr_layer_surface_v1_destroy(layer->layer_surface);
}
static void handle_node_destroy(struct wl_listener *listener, void *data) {