mirror of git://git.suckless.org/dwm
minor fix to view()
This commit is contained in:
parent
9bb0f20515
commit
bf76cefe47
6
dwm.c
6
dwm.c
|
@ -94,6 +94,8 @@ struct Client {
|
||||||
Client *next;
|
Client *next;
|
||||||
Client *snext;
|
Client *snext;
|
||||||
Window win;
|
Window win;
|
||||||
|
void *aux;
|
||||||
|
void (*freeaux)(void *);
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@ -1519,6 +1521,8 @@ unmanage(Client *c) {
|
||||||
detachstack(c);
|
detachstack(c);
|
||||||
if(sel == c)
|
if(sel == c)
|
||||||
focus(NULL);
|
focus(NULL);
|
||||||
|
if(c->aux && c->freeaux)
|
||||||
|
c->freeaux(c->aux);
|
||||||
XUngrabButton(dpy, AnyButton, AnyModifier, c->win);
|
XUngrabButton(dpy, AnyButton, AnyModifier, c->win);
|
||||||
setclientstate(c, WithdrawnState);
|
setclientstate(c, WithdrawnState);
|
||||||
free(c);
|
free(c);
|
||||||
|
@ -1642,6 +1646,8 @@ updatewmhints(Client *c) {
|
||||||
|
|
||||||
void
|
void
|
||||||
view(const Arg *arg) {
|
view(const Arg *arg) {
|
||||||
|
if(arg && (arg->i & TAGMASK) == tagset[seltags])
|
||||||
|
return;
|
||||||
seltags ^= 1; /* toggle sel tagset */
|
seltags ^= 1; /* toggle sel tagset */
|
||||||
if(arg && (arg->ui & TAGMASK))
|
if(arg && (arg->ui & TAGMASK))
|
||||||
tagset[seltags] = arg->i & TAGMASK;
|
tagset[seltags] = arg->i & TAGMASK;
|
||||||
|
|
Loading…
Reference in New Issue