Mercurial > aewl
changeset 371:fc9d35252ab4
applied sanders somepatches.patch
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Mon, 28 Aug 2006 08:02:29 +0200 (2006-08-28) |
parents | 615b8b2e9457 |
children | a9b4077ec058 |
files | config.default.h draw.c dwm.1 event.c |
diffstat | 4 files changed, 16 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/config.default.h Fri Aug 25 18:14:55 2006 +0200 +++ b/config.default.h Mon Aug 28 08:02:29 2006 +0200 @@ -55,7 +55,7 @@ }; /* Query class:instance:title for regex matching info with following command: - * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/{ printf("%s\n",$2) }' */ + * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */ #define RULES \ static Rule rule[] = { \ /* class:instance:title regex tags regex isfloat */ \
--- a/draw.c Fri Aug 25 18:14:55 2006 +0200 +++ b/draw.c Mon Aug 28 08:02:29 2006 +0200 @@ -97,9 +97,7 @@ int i, x; dc.x = dc.y = 0; - dc.w = bw; - drawtext(NULL, dc.status, False); for(i = 0; i < ntags; i++) { dc.w = textw(tags[i]); if(seltag[i]) @@ -121,9 +119,12 @@ } drawtext(stext, dc.status, False); - if(sel && ((dc.w = dc.x - x) > bh)) { + if((dc.w = dc.x - x) > bh) { dc.x = x; - drawtext(sel->name, dc.sel, False); + if(sel) + drawtext(sel->name, dc.sel, False); + else + drawtext(NULL, dc.norm, False); } XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0); XSync(dpy, False);
--- a/dwm.1 Fri Aug 25 18:14:55 2006 +0200 +++ b/dwm.1 Mon Aug 28 08:02:29 2006 +0200 @@ -40,7 +40,12 @@ .TP .B Button1 click on a tag label views all windows with that -.BR tag . +.BR tag , +click on the mode label toggles between +.B tiled +and +.B floating +mode. .TP .B Button3 click on a tag label adds/removes all windows with that