Add a warning for recursive emit_event

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.
This commit is contained in:
Øyvind Kolås 2009-02-27 17:59:16 +00:00
parent af0726480c
commit 9df3fb993c

View File

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