# HG changeset patch
# User arg@10ksloc.org
# Date 1154708222 -7200
# Node ID 655e38416bb8d3b74974e82d9473109af587096d
# Parent  7c0527dd63cd0917a082011671424f97513e7c0a
fixed view-change bug reported on the list


diff -r 7c0527dd63cd -r 655e38416bb8 tag.c
--- a/tag.c	Fri Aug 04 17:04:50 2006 +0200
+++ b/tag.c	Fri Aug 04 18:17:02 2006 +0200
@@ -57,14 +57,12 @@
 		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 @@
 		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();
 }