mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-07-21 02:25:36 +00:00
shell: Only animate window closing for mapped windows
https://bugs.freedesktop.org/show_bug.cgi?id=76415
This commit is contained in:
parent
160fe75b32
commit
b033c5e1d0
|
@ -3040,7 +3040,9 @@ handle_resource_destroy(struct wl_listener *listener, void *data)
|
|||
pixman_region32_init(&shsurf->surface->pending.input);
|
||||
pixman_region32_fini(&shsurf->surface->input);
|
||||
pixman_region32_init(&shsurf->surface->input);
|
||||
weston_fade_run(shsurf->view, 1.0, 0.0, 300.0, fade_out_done, shsurf);
|
||||
if (weston_surface_is_mapped(shsurf->surface))
|
||||
weston_fade_run(shsurf->view, 1.0, 0.0, 300.0,
|
||||
fade_out_done, shsurf);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue