X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=dwm.c;h=413e79541b2b0d5b1abca311df621a779f58fc48;hp=a2c1e00bc4fa5cfacf3d3ca55753421de5e9e5cd;hb=eb260b1a414fb82fc01d3638e3e77495297c45d5;hpb=a3a859b4e93d65fd22619449d18e0437d5c2774b diff --git a/dwm.c b/dwm.c index a2c1e00..413e795 100644 --- a/dwm.c +++ b/dwm.c @@ -218,7 +218,7 @@ static void togglefloating(const Arg *arg); static void toggletag(const Arg *arg); static void toggleview(const Arg *arg); static void unfocus(Client *c); -static void unmanage(Client *c, Bool isdestroyed); +static void unmanage(Client *c, Bool destroyed); static void unmapnotify(XEvent *e); static void updategeom(void); static void updatebarpos(Monitor *m); @@ -1041,6 +1041,7 @@ killclient(const Arg *arg) { } else XKillClient(dpy, selmon->sel->win); + XSync(dpy, False); } void @@ -1626,13 +1627,13 @@ unfocus(Client *c) { } void -unmanage(Client *c, Bool isdestroyed) { +unmanage(Client *c, Bool destroyed) { XWindowChanges wc; /* The server grab construct avoids race conditions. */ detach(c); detachstack(c); - if(!isdestroyed) { + if(!destroyed) { wc.border_width = c->oldbw; XGrabServer(dpy); XSetErrorHandler(xerrordummy);