dwm-meillo

changeset 371:fc9d35252ab4

applied sanders somepatches.patch
author Anselm R. Garbe <arg@10kloc.org>
date Mon, 28 Aug 2006 08:02:29 +0200
parents 615b8b2e9457
children a9b4077ec058
files config.default.h draw.c dwm.1 event.c
diffstat 4 files changed, 16 insertions(+), 8 deletions(-) [+]
line diff
     1.1 --- a/config.default.h	Fri Aug 25 18:14:55 2006 +0200
     1.2 +++ b/config.default.h	Mon Aug 28 08:02:29 2006 +0200
     1.3 @@ -55,7 +55,7 @@
     1.4  };
     1.5  
     1.6  /* Query class:instance:title for regex matching info with following command:
     1.7 - * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/{ printf("%s\n",$2) }' */
     1.8 + * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */
     1.9  #define RULES \
    1.10  static Rule rule[] = { \
    1.11  	/* class:instance:title regex	tags regex	isfloat */ \
     2.1 --- a/draw.c	Fri Aug 25 18:14:55 2006 +0200
     2.2 +++ b/draw.c	Mon Aug 28 08:02:29 2006 +0200
     2.3 @@ -97,9 +97,7 @@
     2.4  	int i, x;
     2.5  
     2.6  	dc.x = dc.y = 0;
     2.7 -	dc.w = bw;
     2.8  
     2.9 -	drawtext(NULL, dc.status, False);
    2.10  	for(i = 0; i < ntags; i++) {
    2.11  		dc.w = textw(tags[i]);
    2.12  		if(seltag[i])
    2.13 @@ -121,9 +119,12 @@
    2.14  	}
    2.15  	drawtext(stext, dc.status, False);
    2.16  
    2.17 -	if(sel && ((dc.w = dc.x - x) > bh)) {
    2.18 +	if((dc.w = dc.x - x) > bh) {
    2.19  		dc.x = x;
    2.20 -		drawtext(sel->name, dc.sel, False);
    2.21 +		if(sel)
    2.22 +			drawtext(sel->name, dc.sel, False);
    2.23 +		else
    2.24 +			drawtext(NULL, dc.norm, False);
    2.25  	}
    2.26  	XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0);
    2.27  	XSync(dpy, False);
     3.1 --- a/dwm.1	Fri Aug 25 18:14:55 2006 +0200
     3.2 +++ b/dwm.1	Mon Aug 28 08:02:29 2006 +0200
     3.3 @@ -40,7 +40,12 @@
     3.4  .TP
     3.5  .B Button1
     3.6  click on a tag label views all windows with that
     3.7 -.BR tag .
     3.8 +.BR tag ,
     3.9 +click on the mode label toggles between
    3.10 +.B tiled
    3.11 +and
    3.12 +.B floating
    3.13 +mode.
    3.14  .TP
    3.15  .B Button3
    3.16  click on a tag label adds/removes all windows with that
     4.1 --- a/event.c	Fri Aug 25 18:14:55 2006 +0200
     4.2 +++ b/event.c	Mon Aug 28 08:02:29 2006 +0200
     4.3 @@ -116,8 +116,10 @@
     4.4  				return;
     4.5  			}
     4.6  		}
     4.7 -		if(ev->x < x + bmw)
     4.8 -			togglemode(NULL);
     4.9 +		if(ev->x < x + bmw) {
    4.10 +			if(ev->button == Button1)
    4.11 +				togglemode(NULL);
    4.12 +		}
    4.13  	}
    4.14  	else if((c = getclient(ev->window))) {
    4.15  		focus(c);