mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-02-15 22:05:35 -05:00
Re-init link when removing animation.
This commit is contained in:
parent
1febe01084
commit
bb8cd938b5
1 changed files with 5 additions and 2 deletions
|
|
@ -673,6 +673,7 @@ surface_destroy(struct wl_client *client,
|
|||
struct wlsc_compositor *ec = es->compositor;
|
||||
|
||||
wl_list_remove(&es->link);
|
||||
wl_list_remove(&es->animate.link);
|
||||
wlsc_surface_destroy(es, ec);
|
||||
|
||||
schedule_repaint(ec);
|
||||
|
|
@ -804,10 +805,12 @@ animate_surface(struct wlsc_animate *animate,
|
|||
|
||||
tmp = s->current;
|
||||
wlsc_vector_subtract(&tmp, &s->target);
|
||||
if (tmp.x * tmp.x + tmp.y * tmp.y + tmp.z * tmp.z > 0.001)
|
||||
if (tmp.x * tmp.x + tmp.y * tmp.y + tmp.z * tmp.z > 0.001) {
|
||||
schedule_repaint(compositor);
|
||||
else
|
||||
} else {
|
||||
wl_list_remove(&s->animate.link);
|
||||
wl_list_init(&s->animate.link);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue