fix crash when closing applications too fast
@@ -96,6 +96,7 @@ static Drw *drw;
static Monitor *mons;
static Window root, wmcheckwin;
int animated = 1;
+Client *animclient;
int commandoffsets[10];
@@ -1780,8 +1781,10 @@ killclient(const Arg *arg)
{
if (!selmon->sel || selmon->sel->islocked)
return;
- if (animated)
+ if (animated && selmon->sel != animclient) {
+ animclient = selmon->sel;
animateclient(selmon->sel, selmon->sel->x, selmon->mh - 20, 0, 0, 10, 0);
+ }
if (!sendevent(selmon->sel->win, wmatom[WMDelete], NoEventMask, wmatom[WMDelete], CurrentTime, 0 , 0, 0)) {
XGrabServer(dpy);
XSetErrorHandler(xerrordummy);
