aewl

changeset 194:655e38416bb8

fixed view-change bug reported on the list
author arg@10ksloc.org
date Fri, 04 Aug 2006 18:17:02 +0200
parents 7c0527dd63cd
children 97960220eb77
files tag.c
diffstat 1 files changed, 10 insertions(+), 14 deletions(-) [+]
line diff
     1.1 --- a/tag.c	Fri Aug 04 17:04:50 2006 +0200
     1.2 +++ b/tag.c	Fri Aug 04 18:17:02 2006 +0200
     1.3 @@ -57,14 +57,12 @@
     1.4  		else
     1.5  			ban(c);
     1.6  	}
     1.7 -	if(sel && !sel->tags[tsel]) {
     1.8 -		if((sel = getnext(clients))) {
     1.9 -			higher(sel);
    1.10 -			focus(sel);
    1.11 -		}
    1.12 -		else
    1.13 -			XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
    1.14 +	if((sel = getnext(clients))) {
    1.15 +		higher(sel);
    1.16 +		focus(sel);
    1.17  	}
    1.18 +	else
    1.19 +		XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
    1.20  	drawall();
    1.21  }
    1.22  
    1.23 @@ -122,14 +120,12 @@
    1.24  		else
    1.25  			ban(c);
    1.26  	}
    1.27 -	if(!sel || (sel && !sel->tags[tsel])) {
    1.28 -		if((sel = getnext(clients))) {
    1.29 -			higher(sel);
    1.30 -			focus(sel);
    1.31 -		}
    1.32 -		else
    1.33 -			XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
    1.34 +	if((sel = getnext(clients))) {
    1.35 +		higher(sel);
    1.36 +		focus(sel);
    1.37  	}
    1.38 +	else
    1.39 +		XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
    1.40  	drawall();
    1.41  }
    1.42