diff options
author | Anselm R Garbe | 2008-07-02 11:06:46 +0100 |
---|---|---|
committer | Anselm R Garbe | 2008-07-02 11:06:46 +0100 |
commit | bf76cefe47749f784d4ee3b7b71c1c86460e236b (patch) | |
tree | b67a9fb68b89ee5ec42ebde1a2c9ba9ed4e92e08 | |
parent | 9bb0f20515023aa5471c628d01a6e65e93040dc1 (diff) |
minor fix to view()
-rw-r--r-- | dwm.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -94,6 +94,8 @@ struct Client { Client *next; Client *snext; Window win; + void *aux; + void (*freeaux)(void *); }; typedef struct { @@ -1519,6 +1521,8 @@ unmanage(Client *c) { detachstack(c); if(sel == c) focus(NULL); + if(c->aux && c->freeaux) + c->freeaux(c->aux); XUngrabButton(dpy, AnyButton, AnyModifier, c->win); setclientstate(c, WithdrawnState); free(c); @@ -1642,6 +1646,8 @@ updatewmhints(Client *c) { void view(const Arg *arg) { + if(arg && (arg->i & TAGMASK) == tagset[seltags]) + return; seltags ^= 1; /* toggle sel tagset */ if(arg && (arg->ui & TAGMASK)) tagset[seltags] = arg->i & TAGMASK; |