
Tweener uses a clutter timeline to manage all active animations running at a given moment. The timeline is mopped up when no animations are going any more. Clutter requires timelines to have a finite duration, but since animations can happen at any moment, no fixed duration can accomodate the shell's needs. To combat this problem, the tweener code picks a relatively long duration: 1000 seconds. No string of animations should take that long, so, in theory, that should be good enough. Unfortunately, this tactic fails, in practice, when the user suspends their machine, or VT switches. An animation can take much longer than 1000 seconds (~16 minutes) to complete in those cases. When the user resumes, or VT switches back the timeline completes immediately (since it's already late) and tweener never notices that the timeline stops ticking. This commit changes the tweener timeline to automatically loop back to 0 after completing, so that despite its fixed duration property, it effectively never stops. Since the timeline loops, its concept of elapsed time no longer increases monotonically, so we now ignore it and track time ourselves with GLib.get_monotonic_time(). This partially reverts commit 35764fa09e4341e79732409c4e74c226d19f780f. https://bugzilla.gnome.org/show_bug.cgi?id=653833
GNOME Shell provides core user interface functions for the GNOME 3 desktop, like switching to windows and launching applications. GNOME Shell takes advantage of the capabilities of modern graphics hardware and introduces innovative user interface concepts to provide a visually attractive and easy to use experience. For more information about GNOME Shell, including instructions on how to build GNOME Shell from source and how to get involved with the project, see: http://live.gnome.org/GnomeShell Bugs should be reported at http://bugzilla.gnome.org against the 'gnome-shell' product. License ======= GNOME Shell is distributed under the terms of the GNU General Public License, version 2 or later. See the COPYING file for details.
Description
Languages
C
49.2%
JavaScript
47.4%
SCSS
1.4%
Meson
0.8%
Python
0.6%
Other
0.4%