Commit 5898cd32 authored by Tomohito Esaki's avatar Tomohito Esaki Committed by Daniel Stone

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's avatarTomohito Esaki <etom@igel.co.jp>
parent 81433582
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment