added global animation actions executed after init/anim/post delay
[rocksndiamonds.git] / src / events.c
index 11fd28f40035daab17fc49caf6e05a0995b8262c..3a22c7426f36215175cad6312a68f8bcbe04a230 100644 (file)
@@ -1607,6 +1607,15 @@ void HandleUserEvent(UserEvent *event)
 {
   switch (event->code)
   {
+    case USEREVENT_ANIM_DELAY_ACTION:
+    case USEREVENT_ANIM_EVENT_ACTION:
+      // execute action functions until matching action was found
+      if (DoKeysymAction(event->value1) ||
+         DoGadgetAction(event->value1) ||
+         DoScreenAction(event->value1))
+       return;
+      break;
+
     default:
       break;
   }