aewl

changeset 393:6786cd59468f

applied sanders patch to remove unnecessary commit()
author Anselm R. Garbe <arg@10kloc.org>
date Thu, 31 Aug 2006 08:48:04 +0200
parents 278277287de6
children 1da9a6b94ca9
files config.mk tag.c view.c
diffstat 3 files changed, 9 insertions(+), 16 deletions(-) [+]
line diff
     1.1 --- a/config.mk	Wed Aug 30 13:00:30 2006 +0200
     1.2 +++ b/config.mk	Thu Aug 31 08:48:04 2006 +0200
     1.3 @@ -1,5 +1,5 @@
     1.4  # dwm version
     1.5 -VERSION = 1.2
     1.6 +VERSION = 1.3
     1.7  
     1.8  # Customize below to fit your system
     1.9  
     2.1 --- a/tag.c	Wed Aug 30 13:00:30 2006 +0200
     2.2 +++ b/tag.c	Thu Aug 31 08:48:04 2006 +0200
     2.3 @@ -30,17 +30,6 @@
     2.4  static RReg *rreg = NULL;
     2.5  static unsigned int len = 0;
     2.6  
     2.7 -static void
     2.8 -commit()
     2.9 -{
    2.10 -	/* asserts sel != NULL */
    2.11 -	settitle(sel);
    2.12 -	if(!isvisible(sel))
    2.13 -		arrange(NULL);
    2.14 -	else
    2.15 -		drawstatus();
    2.16 -}
    2.17 -
    2.18  /* extern */
    2.19  
    2.20  Client *
    2.21 @@ -132,7 +121,7 @@
    2.22  	for(i = 0; i < ntags; i++)
    2.23  		sel->tags[i] = False;
    2.24  	sel->tags[arg->i] = True;
    2.25 -	commit();
    2.26 +	arrange(NULL);
    2.27  }
    2.28  
    2.29  void
    2.30 @@ -147,5 +136,5 @@
    2.31  	for(i = 0; i < ntags && !sel->tags[i]; i++);
    2.32  	if(i == ntags)
    2.33  		sel->tags[arg->i] = True;
    2.34 -	commit();
    2.35 +	arrange(NULL);
    2.36  }
     3.1 --- a/view.c	Wed Aug 30 13:00:30 2006 +0200
     3.2 +++ b/view.c	Thu Aug 31 08:48:04 2006 +0200
     3.3 @@ -67,7 +67,9 @@
     3.4  		else
     3.5  			ban(c);
     3.6  	}
     3.7 -	if((sel = getnext(clients)))
     3.8 +	if(!sel || !isvisible(sel))
     3.9 +		sel = getnext(clients);
    3.10 +	if(sel)
    3.11  		focus(sel);
    3.12  	else
    3.13  		XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
    3.14 @@ -130,7 +132,9 @@
    3.15  		else
    3.16  			ban(c);
    3.17  	}
    3.18 -	if((sel = getnext(clients)))
    3.19 +	if(!sel || !isvisible(sel))
    3.20 +		sel = getnext(clients);
    3.21 +	if(sel)
    3.22  		focus(sel);
    3.23  	else
    3.24  		XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);