mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
Create the dummy timeline for repaint laters with an "infinite" duration.
When we create the timeline dummy timeline to ensure that our later functions that should be run during repaint get called called, pass in G_MAXUINT to make the duration very long, not 0. (It will get reset whenever there is no repaint later to run, so the fact that G_MAXUINT is only ~40 days isn't a problem.) This fixes a warning from Clutter, but also a real problem.
This commit is contained in:
parent
3508c4aa87
commit
083854e2de
@ -750,7 +750,7 @@ static void
|
||||
ensure_later_repaint_func (void)
|
||||
{
|
||||
if (!later_timeline)
|
||||
later_timeline = clutter_timeline_new (0);
|
||||
later_timeline = clutter_timeline_new (G_MAXUINT);
|
||||
|
||||
if (later_repaint_func == 0)
|
||||
later_repaint_func = clutter_threads_add_repaint_func (run_repaint_laters,
|
||||
|
Loading…
Reference in New Issue
Block a user