composition: use g_main_context_set_dispatches_per_iteration ()
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Fri, 18 Jul 2014 02:01:25 +0000 (04:01 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Fri, 31 Oct 2014 10:58:11 +0000 (11:58 +0100)
Let's hope this gets merged ...

gnl/gnlcomposition.c

index b3311d5..363ce57 100644 (file)
@@ -745,6 +745,7 @@ gnl_composition_init (GnlComposition * comp)
   priv->objects_hash = g_hash_table_new (g_direct_hash, g_direct_equal);
 
   priv->mcontext = g_main_context_new ();
+  g_main_context_set_dispatches_per_iteration (priv->mcontext, 1);
   g_mutex_init (&priv->mcontext_lock);
 
   priv->pending_io = g_hash_table_new (g_direct_hash, g_direct_equal);