Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
this patch keeps track of global z-layer order of clients which are floating or if...
[dwm.git]
/
draw.c
diff --git
a/draw.c
b/draw.c
index
3ddc522
..
b8b6c1d
100644
(file)
--- a/
draw.c
+++ b/
draw.c
@@
-97,19
+97,20
@@
drawstatus()
int i, x;
dc.x = dc.y = 0;
int i, x;
dc.x = dc.y = 0;
- dc.w = bw;
- drawtext(arrange == dotile ? TILESYMBOL : FLOATSYMBOL, dc.status, False);
- dc.w = modew;
for(i = 0; i < ntags; i++) {
for(i = 0; i < ntags; i++) {
- dc.x += dc.w;
dc.w = textw(tags[i]);
if(seltag[i])
drawtext(tags[i], dc.sel, sel && sel->tags[i]);
else
drawtext(tags[i], dc.norm, sel && sel->tags[i]);
dc.w = textw(tags[i]);
if(seltag[i])
drawtext(tags[i], dc.sel, sel && sel->tags[i]);
else
drawtext(tags[i], dc.norm, sel && sel->tags[i]);
+ dc.x += dc.w;
}
}
- x = dc.x + dc.w + 1;
+
+ dc.w = bmw;
+ drawtext(arrange == dotile ? TILESYMBOL : FLOATSYMBOL, dc.status, False);
+
+ x = dc.x + dc.w;
dc.w = textw(stext);
dc.x = bx + bw - dc.w;
if(dc.x < x) {
dc.w = textw(stext);
dc.x = bx + bw - dc.w;
if(dc.x < x) {
@@
-118,9
+119,12
@@
drawstatus()
}
drawtext(stext, dc.status, False);
}
drawtext(stext, dc.status, False);
- if(
sel && ((dc.w = dc.x - x) > bh)
) {
+ if(
(dc.w = dc.x - x) > bh
) {
dc.x = x;
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);
}
XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0);
XSync(dpy, False);
@@
-129,8
+133,6
@@
drawstatus()
void
drawtitle(Client *c)
{
void
drawtitle(Client *c)
{
- int i;
-
if(c == sel && issel) {
drawstatus();
XUnmapWindow(dpy, c->twin);
if(c == sel && issel) {
drawstatus();
XUnmapWindow(dpy, c->twin);