about summary refs log tree commit diff stats
path: root/dwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index 87bc1d2..60d6ea6 100644
--- a/dwm.c
+++ b/dwm.c
@@ -291,8 +291,6 @@ applyrules(Client *c) {
 	}
 }
 
-
-
 void
 arrange(void) {
 	unsigned int i;
@@ -342,6 +340,8 @@ buttonpress(XEvent *e) {
 	if(ev->window == selview->barwin) {
 		x = 0;
 		for(i = 0; i < LENGTH(tags); i++) {
+			if(&views[vtags[i]] != selview)
+				continue;
 			x += textw(tags[i]);
 			if(ev->x < x) {
 				if(ev->button == Button1) {
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