Xinqi Bao's Git
projects
/
dwm.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
4ec0420
)
applied Gottox patches
author
arg@mig29 <unknown>
Tue, 21 Nov 2006 13:49:13 +0000
(14:49 +0100)
committer
arg@mig29 <unknown>
Tue, 21 Nov 2006 13:49:13 +0000
(14:49 +0100)
config.mk
patch
|
blob
|
history
draw.c
patch
|
blob
|
history
main.c
patch
|
blob
|
history
diff --git
a/config.mk
b/config.mk
index
63ffb69
..
dd70d38
100644
(file)
--- a/
config.mk
+++ b/
config.mk
@@
-1,5
+1,5
@@
# dwm version
# dwm version
-VERSION = 2.
2
+VERSION = 2.
3
# Customize below to fit your system
# Customize below to fit your system
diff --git
a/draw.c
b/draw.c
index
178f1d2
..
c2c47dc
100644
(file)
--- a/
draw.c
+++ b/
draw.c
@@
-99,7
+99,7
@@
drawstatus(void) {
drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.status, False);
x = dc.x + dc.w;
dc.w = textw(stext);
drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.status, False);
x = dc.x + dc.w;
dc.w = textw(stext);
- dc.x = b
x + b
w - dc.w;
+ dc.x = bw - dc.w;
if(dc.x < x) {
dc.x = x;
dc.w = bw - x;
if(dc.x < x) {
dc.x = x;
dc.w = bw - x;
@@
-107,10
+107,7
@@
drawstatus(void) {
drawtext(stext, dc.status, False);
if((dc.w = dc.x - x) > bh) {
dc.x = x;
drawtext(stext, dc.status, False);
if((dc.w = dc.x - x) > bh) {
dc.x = x;
- if(sel)
- drawtext(sel->name, dc.sel, False);
- else
- drawtext(NULL, dc.norm, False);
+ drawtext(sel ? sel->name : NULL, dc.sel, False);
}
XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0);
XSync(dpy, False);
}
XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0);
XSync(dpy, False);
diff --git
a/main.c
b/main.c
index
0f22c44
..
f114bae
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-130,7
+130,8
@@
setup(void) {
sh = DisplayHeight(dpy, screen);
master = MASTER;
/* bar */
sh = DisplayHeight(dpy, screen);
master = MASTER;
/* bar */
- bx = by = 0;
+ bx = sx;
+ by = sy;
bw = sw;
dc.h = bh = dc.font.height + 2;
wa.override_redirect = 1;
bw = sw;
dc.h = bh = dc.font.height + 2;
wa.override_redirect = 1;
@@
-144,7
+145,7
@@
setup(void) {
strcpy(stext, "dwm-"VERSION);
/* windowarea */
wax = sx;
strcpy(stext, "dwm-"VERSION);
/* windowarea */
wax = sx;
- way = bh;
+ way =
sy +
bh;
wah = sh - bh;
waw = sw;
/* pixmap for everything */
wah = sh - bh;
waw = sw;
/* pixmap for everything */