mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-18 06:59:46 -05:00
Make overlay animation actually stop.
This commit is contained in:
parent
4097923a64
commit
73c305851d
1 changed files with 2 additions and 2 deletions
|
|
@ -510,8 +510,8 @@ animate_overlay(struct egl_compositor *ec)
|
||||||
|
|
||||||
ec->overlay->map.y = ec->overlay_y + 0.5;
|
ec->overlay->map.y = ec->overlay_y + 0.5;
|
||||||
|
|
||||||
if (fabs(y + 0.5 - ec->overlay_target) > 0.2 ||
|
if (fabs(y - ec->overlay_target) > 0.2 ||
|
||||||
fabs(ec->overlay_y + 5 - ec->overlay_target) > 0.2)
|
fabs(ec->overlay_y - ec->overlay_target) > 0.2)
|
||||||
schedule_repaint(ec);
|
schedule_repaint(ec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue