Bouncing appicon effect
[wmaker-crm.git] / src / application.c
index f19788b..19fcb52 100644 (file)
@@ -409,6 +409,15 @@ void wApplicationDestroy(WApplication * wapp)
        if (wapp->refcount > 0)
                return;
 
+#ifdef BOUNCE_APP
+       if (wapp->flags.bouncing) {
+               /* event.c:handleDestroyNotify forced this destroy
+                  and thereby overlooked the bounce callback */
+               wapp->refcount = 1;
+               return;
+       }
+#endif
+
        scr = wapp->main_window_desc->screen_ptr;
        main_window = wapp->main_window;