X-Git-Url: https://repo.or.cz/w/wmaker-crm.git/blobdiff_plain/17cc7c3c773fd311d83eb244f0e48ea7c44d3abb..a257e16593bb471662ce46f65d489c2ba6d87813:/src/application.c diff --git a/src/application.c b/src/application.c index f19788b6..19fcb520 100644 --- a/src/application.c +++ b/src/application.c @@ -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;