Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
s/444/555/g - enlightened selected background
[dwm.git]
/
draw.c
diff --git
a/draw.c
b/draw.c
index
0ee362c
..
fe2951c
100644
(file)
--- a/
draw.c
+++ b/
draw.c
@@
-97,15
+97,6
@@
drawtext(const char *text, unsigned long col[ColLast], Bool filledsquare, Bool e
/* extern */
/* extern */
-void
-drawall(void) {
- Client *c;
-
- for(c = clients; c; c = getnext(c->next))
- drawclient(c);
- drawstatus();
-}
-
void
drawstatus(void) {
int i, x;
void
drawstatus(void) {
int i, x;
@@
-120,7
+111,7
@@
drawstatus(void) {
dc.x += dc.w;
}
dc.w = bmw;
dc.x += dc.w;
}
dc.w = bmw;
- drawtext(
mtext, dc.status
, False, False);
+ drawtext(
arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.norm
, False, False);
x = dc.x + dc.w;
dc.w = textw(stext);
dc.x = bw - dc.w;
x = dc.x + dc.w;
dc.w = textw(stext);
dc.x = bw - dc.w;
@@
-128,7
+119,7
@@
drawstatus(void) {
dc.x = x;
dc.w = bw - x;
}
dc.x = x;
dc.w = bw - x;
}
- drawtext(stext, dc.
status
, False, False);
+ drawtext(stext, dc.
norm
, False, False);
if((dc.w = dc.x - x) > bh) {
dc.x = x;
drawtext(sel ? sel->name : NULL, sel ? dc.sel : dc.norm, False, False);
if((dc.w = dc.x - x) > bh) {
dc.x = x;
drawtext(sel ? sel->name : NULL, sel ? dc.sel : dc.norm, False, False);
@@
-137,17
+128,6
@@
drawstatus(void) {
XSync(dpy, False);
}
XSync(dpy, False);
}
-void
-drawclient(Client *c) {
- if(c == sel && issel) {
- drawstatus();
- XSetWindowBorder(dpy, c->win, dc.sel[ColBG]);
- return;
- }
- XSetWindowBorder(dpy, c->win, dc.norm[ColBG]);
- XSync(dpy, False);
-}
-
unsigned long
getcolor(const char *colstr) {
Colormap cmap = DefaultColormap(dpy, screen);
unsigned long
getcolor(const char *colstr) {
Colormap cmap = DefaultColormap(dpy, screen);