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();
 }
 
3 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210