<br><br><div class="gmail_quote">On Thu, Jun 7, 2012 at 3:15 PM, Kristian Høgsberg <span dir="ltr"><<a href="mailto:hoegsberg@gmail.com" target="_blank">hoegsberg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu, Jun 07, 2012 at 09:12:30AM -0600, Scott Moreau wrote:<br>
> ---<br>
> src/compositor.c | 8 +++++++-<br>
> src/compositor.h | 2 ++<br>
> 2 files changed, 9 insertions(+), 1 deletions(-)<br>
><br>
> diff --git a/src/compositor.c b/src/compositor.c<br>
> index 9110d4c..7f51424 100644<br>
> --- a/src/compositor.c<br>
> +++ b/src/compositor.c<br>
> @@ -980,6 +980,12 @@ fade_frame(struct weston_animation *animation,<br>
> }<br>
> }<br>
><br>
> +WL_EXPORT int<br>
> +weston_animation_exists(struct weston_animation *animation)<br>
<br>
</div>Call it weston_animation_running() instead?<br></blockquote><div><br>Yes, I think this would be much better.<br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><div class="h5"><br>
> +{<br>
> + return wl_list_empty(&animation->link) ? 0 : 1;<br>
> +}<br>
> +<br>
> WL_EXPORT void<br>
> weston_animation_run(struct weston_compositor *compositor,<br>
> struct weston_output *output,<br>
> @@ -1204,7 +1210,7 @@ weston_compositor_fade(struct weston_compositor *compositor, float tint)<br>
> }<br>
><br>
> weston_surface_damage(compositor->fade.surface);<br>
> - if (wl_list_empty(&compositor->fade.animation.link))<br>
> + if (!weston_animation_exists(&compositor->fade.animation))<br>
> weston_animation_run(compositor, NULL,<br>
> &compositor->fade.animation);<br>
> }<br>
> diff --git a/src/compositor.h b/src/compositor.h<br>
> index 30cb7bb..69bbbc4 100644<br>
> --- a/src/compositor.h<br>
> +++ b/src/compositor.h<br>
> @@ -534,6 +534,8 @@ weston_compositor_activity(struct weston_compositor *compositor);<br>
> void<br>
> weston_compositor_update_drag_surfaces(struct weston_compositor *compositor);<br>
><br>
> +int<br>
> +weston_animation_exists(struct weston_animation *animation);<br>
> void<br>
> weston_animation_run(struct weston_compositor *compositor,<br>
> struct weston_output *output,<br>
> --<br>
> 1.7.7.6<br>
><br>
</div></div>> _______________________________________________<br>
> wayland-devel mailing list<br>
> <a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</blockquote></div><br>