Skip to content

Commit 3cbea64

Browse files
committed
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
1 parent 3f0b3f8 commit 3cbea64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sway/desktop/layer_shell.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ static void handle_output_destroy(struct wl_listener *listener, void *data) {
221221
wl_container_of(listener, layer, output_destroy);
222222

223223
layer->output = NULL;
224-
wlr_scene_node_destroy(&layer->scene->tree->node);
224+
wlr_layer_surface_v1_destroy(layer->layer_surface);
225225
}
226226

227227
static void handle_node_destroy(struct wl_listener *listener, void *data) {

0 commit comments

Comments
 (0)