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 <etom@igel.co.jp>
dev
Tomohito Esaki 6 years ago committed by Daniel Stone
parent 814335821e
commit 5898cd32c5
  1. 2
      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); loop = wl_display_get_event_loop(shsurf->shell->compositor->wl_display);
if (weston_view_is_mapped(shsurf->view)) { 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); wl_event_loop_add_idle(loop, fade_out_done_idle_cb, shsurf);
} }
} }

Loading…
Cancel
Save