Xinqi Bao's Git
projects
/
dwm.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
9bb0f20
)
minor fix to view()
author
Anselm R Garbe <
[email protected]
>
Wed, 2 Jul 2008 10:06:46 +0000
(11:06 +0100)
committer
Anselm R Garbe <
[email protected]
>
Wed, 2 Jul 2008 10:06:46 +0000
(11:06 +0100)
dwm.c
diff
|
blob
|
history
diff --git
a/dwm.c
b/dwm.c
index
e135715
..
a13f07b
100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-94,6
+94,8
@@
struct Client {
Client *next;
Client *snext;
Window win;
Client *next;
Client *snext;
Window win;
+ void *aux;
+ void (*freeaux)(void *);
};
typedef struct {
};
typedef struct {
@@
-1519,6
+1521,8
@@
unmanage(Client *c) {
detachstack(c);
if(sel == c)
focus(NULL);
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);
XUngrabButton(dpy, AnyButton, AnyModifier, c->win);
setclientstate(c, WithdrawnState);
free(c);
@@
-1642,6
+1646,8
@@
updatewmhints(Client *c) {
void
view(const Arg *arg) {
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;
seltags ^= 1; /* toggle sel tagset */
if(arg && (arg->ui & TAGMASK))
tagset[seltags] = arg->i & TAGMASK;