<br><br><div class="gmail_quote">On Thu, Jun 7, 2012 at 3:15 PM, Kristian Høgsberg <span dir="ltr">&lt;<a href="mailto:hoegsberg@gmail.com" target="_blank">hoegsberg@gmail.com</a>&gt;</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>
&gt; ---<br>
&gt;  src/compositor.c |    8 +++++++-<br>
&gt;  src/compositor.h |    2 ++<br>
&gt;  2 files changed, 9 insertions(+), 1 deletions(-)<br>
&gt;<br>
&gt; diff --git a/src/compositor.c b/src/compositor.c<br>
&gt; index 9110d4c..7f51424 100644<br>
&gt; --- a/src/compositor.c<br>
&gt; +++ b/src/compositor.c<br>
&gt; @@ -980,6 +980,12 @@ fade_frame(struct weston_animation *animation,<br>
&gt;       }<br>
&gt;  }<br>
&gt;<br>
&gt; +WL_EXPORT int<br>
&gt; +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>
&gt; +{<br>
&gt; +     return wl_list_empty(&amp;animation-&gt;link) ? 0 : 1;<br>
&gt; +}<br>
&gt; +<br>
&gt;  WL_EXPORT void<br>
&gt;  weston_animation_run(struct weston_compositor *compositor,<br>
&gt;                       struct weston_output *output,<br>
&gt; @@ -1204,7 +1210,7 @@ weston_compositor_fade(struct weston_compositor *compositor, float tint)<br>
&gt;       }<br>
&gt;<br>
&gt;       weston_surface_damage(compositor-&gt;fade.surface);<br>
&gt; -     if (wl_list_empty(&amp;compositor-&gt;fade.animation.link))<br>
&gt; +     if (!weston_animation_exists(&amp;compositor-&gt;fade.animation))<br>
&gt;               weston_animation_run(compositor, NULL,<br>
&gt;                                       &amp;compositor-&gt;fade.animation);<br>
&gt;  }<br>
&gt; diff --git a/src/compositor.h b/src/compositor.h<br>
&gt; index 30cb7bb..69bbbc4 100644<br>
&gt; --- a/src/compositor.h<br>
&gt; +++ b/src/compositor.h<br>
&gt; @@ -534,6 +534,8 @@ weston_compositor_activity(struct weston_compositor *compositor);<br>
&gt;  void<br>
&gt;  weston_compositor_update_drag_surfaces(struct weston_compositor *compositor);<br>
&gt;<br>
&gt; +int<br>
&gt; +weston_animation_exists(struct weston_animation *animation);<br>
&gt;  void<br>
&gt;  weston_animation_run(struct weston_compositor *compositor,<br>
&gt;                               struct weston_output *output,<br>
&gt; --<br>
&gt; 1.7.7.6<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; wayland-devel mailing list<br>
&gt; <a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
&gt; <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>