Introduction
Introduction Statistics Contact Development Disclaimer Help
tapplied sanders somepatches.patch - dwm - [fork] customized build of dwm, the …
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit 2dd5212a795b27422d601df0566ae0d6644bd4c8
parent 00e95e1f38f7f63584925182a98fb36e84b0f246
Author: Anselm R. Garbe <[email protected]>
Date: Mon, 28 Aug 2006 08:02:29 +0200
applied sanders somepatches.patch
Diffstat:
M config.default.h | 2 +-
M draw.c | 9 +++++----
M dwm.1 | 7 ++++++-
M event.c | 6 ++++--
4 files changed, 16 insertions(+), 8 deletions(-)
---
diff --git a/config.default.h b/config.default.h
t@@ -55,7 +55,7 @@ static Key key[] = { \
};
/* Query class:instance:title for regex matching info with following command:
- * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/{ pri…
+ * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { pr…
#define RULES \
static Rule rule[] = { \
/* class:instance:title regex tags regex isfloat */ \
diff --git a/draw.c b/draw.c
t@@ -97,9 +97,7 @@ drawstatus()
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])
t@@ -121,9 +119,12 @@ drawstatus()
}
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);
diff --git a/dwm.1 b/dwm.1
t@@ -40,7 +40,12 @@ is read and displayed in the status text area.
.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
diff --git a/event.c b/event.c
t@@ -116,8 +116,10 @@ buttonpress(XEvent *e)
return;
}
}
- if(ev->x < x + bmw)
- togglemode(NULL);
+ if(ev->x < x + bmw) {
+ if(ev->button == Button1)
+ togglemode(NULL);
+ }
}
else if((c = getclient(ev->window))) {
focus(c);
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.