From 5898cd32c50752c45bfdfeeacb5a259545bf4ac3 Mon Sep 17 00:00:00 2001 From: Tomohito Esaki Date: Mon, 1 Apr 2019 17:50:14 +0900 Subject: [PATCH] desktop-shell: unmap a view which was faded out When Fading out a destroyed surface view finishes, the view is rendered with very little alpha. After that, since the output isn't updated unless a event on the output doesn't occurs, the view is still on the output. By unmapping the view, the output repaint scheduled without the surface. Signed-off-by: Tomohito Esaki --- desktop-shell/shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index 07a6856b..f94a4ca2 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -2348,7 +2348,7 @@ fade_out_done(struct weston_view_animation *animation, void *data) loop = wl_display_get_event_loop(shsurf->shell->compositor->wl_display); if (weston_view_is_mapped(shsurf->view)) { - shsurf->view->is_mapped = false; + weston_view_unmap(shsurf->view); wl_event_loop_add_idle(loop, fade_out_done_idle_cb, shsurf); } }