about summary refs log tree commit diff stats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-07-02 11:06:46 +0100
committerAnselm R Garbe <garbeam@gmail.com>2008-07-02 11:06:46 +0100
commitbf76cefe47749f784d4ee3b7b71c1c86460e236b (patch)
treeb67a9fb68b89ee5ec42ebde1a2c9ba9ed4e92e08 /dwm.c
parent9bb0f20515023aa5471c628d01a6e65e93040dc1 (diff)
downloaddwm-bf76cefe47749f784d4ee3b7b71c1c86460e236b.tar.gz
minor fix to view()
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index e135715..a13f07b 100644
--- a/dwm.c
+++ b/dwm.c
@@ -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;
lt;dickey@invisible-island.net> 1999-01-13 11:46:01 -0500 committer Thomas E. Dickey <dickey@invisible-island.net> 1999-01-13 11:46:01 -0500 snapshot of project "lynx", label v2-8-2dev_13' href='/ingrix/lynx-snapshots/commit/lynx_help/keystrokes/alt_edit_help.html?id=a2e9461739dd215db90a5cee2c22a74e5f57d151'>a2e94617 ^
c7bfda90 ^
a2e94617 ^
c7bfda90 ^
a2e94617 ^
c7bfda90 ^
a2e94617 ^












8ce6b560 ^
a2e94617 ^







c5fef0d4 ^
a2e94617 ^
8ce6b560 ^
a2e94617 ^

8ce6b560 ^
c7bfda90 ^

c5fef0d4 ^
a2e94617 ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58