Add a warning for recursive emit_event
authorØyvind Kolås <pippin@linux.intel.com>
Fri, 27 Feb 2009 17:59:16 +0000 (17:59 +0000)
committerØyvind Kolås <pippin@linux.intel.com>
Fri, 27 Feb 2009 17:59:16 +0000 (17:59 +0000)
When event delivery is invoked by synthetic events through
clutter_do_event from inside an event handler clutter was silently
ignoring it, this warning will hopefully help resolving some issues.

clutter/clutter-main.c

index fecc0c6..2acee48 100644 (file)
@@ -1748,7 +1748,10 @@ emit_event (ClutterEvent *event,
 
   /* reentrancy check */
   if (lock != FALSE)
-    return;
+    {
+      g_warning ("Tried emitting event during event delivery, bailing out.n");
+      return;
+    }
 
   lock = TRUE;