animation: Fix input panel slide animation
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Mon, 14 Apr 2014 12:48:06 +0000 (15:48 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 17 Apr 2014 05:33:46 +0000 (22:33 -0700)
commita4a6f161290d88895cb7a7172fcee21b1546e0da
tree5861b207aebd1d1a88af74d323ce7a67685f0640
parentf5cc2b560f91d9646841670a41a3a742f540633b
animation: Fix input panel slide animation

The position for the slide animation was calculated assuming the value
of the spring was always between 0.0 and 1.0. Commit 3a869019 broke
that assumption, and the result was that the panel would be positioned
at an invisible part of screen. Since there would be no output repaints
scheduled, the result of the animation would only be seen if something
else triggered a repaint (such as a mouse cursor movement).

This patch changes the values for the slide animation's spring to range
between 0.0 and 1.0, thus fixing the position of the panel and the lack
of scheduled repaints problem.

https://bugs.freedesktop.org/show_bug.cgi?id=77347
src/animation.c