about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorarg@10ksloc.org <unknown>2006-08-04 18:17:02 +0200
committerarg@10ksloc.org <unknown>2006-08-04 18:17:02 +0200
commit3d73084b5ef25bca354b32e049b2904aa9519c09 (patch)
treee052d494cf2f7e1c32287d5582a22285c5518db4
parent12b1d439e46e7881942a6d378b3b874c4c9f7555 (diff)
downloaddwm-3d73084b5ef25bca354b32e049b2904aa9519c09.tar.gz
fixed view-change bug reported on the list
-rw-r--r--tag.c24
1 files changed, 10 insertions, 14 deletions
diff --git a/tag.c b/tag.c
index 015a06a..72d87d3 100644
--- a/tag.c
+++ b/tag.c
@@ -57,14 +57,12 @@ dofloat(Arg *arg)
 		else
 			ban(c);
 	}
-	if(sel && !sel->tags[tsel]) {
-		if((sel = getnext(clients))) {
-			higher(sel);
-			focus(sel);
-		}
-		else
-			XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
+	if((sel = getnext(clients))) {
+		higher(sel);
+		focus(sel);
 	}
+	else
+		XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
 	drawall();
 }
 
@@ -122,14 +120,12 @@ dotile(Arg *arg)
 		else
 			ban(c);
 	}
-	if(!sel || (sel && !sel->tags[tsel])) {
-		if((sel = getnext(clients))) {
-			higher(sel);
-			focus(sel);
-		}
-		else
-			XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
+	if((sel = getnext(clients))) {
+		higher(sel);
+		focus(sel);
 	}
+	else
+		XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
 	drawall();
 }
 
itle='Blame the previous revision' href='/akkartik/mu/blame/055parse_tree.cc?h=main&id=9e30dba08d6475e9c26f95630b9595bea73fb705'>^
a17f9186 ^
6808ff7d ^

9cfd925a ^
6808ff7d ^
15f79a66 ^
6808ff7d ^
15f79a66 ^





ff8d96ae ^




a072f674 ^
ff8d96ae ^





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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81