desktop-shell: Fix leaking weston_desktop_surface

If the view has become unmapped, the weston_desktop_surface should still
be unreferenced, otherwise it'll be leaked until the client disconnects.

Signed-off-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
This commit is contained in:
Vlad Zahorodnii 2025-04-14 11:47:24 +03:00 committed by Marius Vlad
parent 4e1e922a28
commit 09c8902225

View file

@ -1898,8 +1898,8 @@ fade_out_done(struct weston_view_animation *animation, void *data)
if (weston_view_is_mapped(shsurf->wview_anim_fade)) {
weston_view_move_to_layer(shsurf->wview_anim_fade, NULL);
wl_event_loop_add_idle(loop, fade_out_done_idle_cb, shsurf);
}
wl_event_loop_add_idle(loop, fade_out_done_idle_cb, shsurf);
}
struct shell_surface *