aewl
diff aewl.c @ 764:15660880e23d
removed unnessasary color pair
author | meillo@marmaro.de |
---|---|
date | Fri, 05 Dec 2008 19:08:47 +0100 |
parents | 17428bca4a12 |
children | 3f7c68a720b5 |
line diff
1.1 --- a/aewl.c Fri Dec 05 16:25:09 2008 +0100 1.2 +++ b/aewl.c Fri Dec 05 19:08:47 2008 +0100 1.3 @@ -57,7 +57,7 @@ 1.4 enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */ 1.5 enum { WMProtocols, WMDelete, WMState, WMLast }; /* default atoms */ 1.6 enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ 1.7 -enum { ColBorder, ColFG, ColBG, ColLast }; /* color */ 1.8 +enum { ColFG, ColBG, ColLast }; /* color */ 1.9 1.10 typedef struct { 1.11 int ascent; 1.12 @@ -1220,7 +1220,7 @@ 1.13 return; 1.14 if(sel && sel != c) { 1.15 grabbuttons(sel, False); 1.16 - XSetWindowBorder(dpy, sel->win, dc.norm[ColBorder]); 1.17 + XSetWindowBorder(dpy, sel->win, dc.norm[ColBG]); 1.18 } 1.19 if(c) { 1.20 detachstack(c); 1.21 @@ -1233,7 +1233,7 @@ 1.22 if(!selscreen) 1.23 return; 1.24 if(c) { 1.25 - XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]); 1.26 + XSetWindowBorder(dpy, c->win, dc.sel[ColBG]); 1.27 XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); 1.28 } else { 1.29 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); 1.30 @@ -1309,7 +1309,7 @@ 1.31 StructureNotifyMask | PropertyChangeMask | EnterWindowMask); 1.32 XGetTransientForHint(dpy, c->win, &trans); 1.33 grabbuttons(c, False); 1.34 - XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]); 1.35 + XSetWindowBorder(dpy, c->win, dc.norm[ColBG]); 1.36 updatetitle(c); 1.37 setgroup(c, getclient(trans)); 1.38 if(!c->isfloat) 1.39 @@ -1586,10 +1586,8 @@ 1.40 initrregs(); 1.41 selgroup = True; 1.42 /* style */ 1.43 - dc.norm[ColBorder] = getcolor(NORMBORDERCOLOR); 1.44 dc.norm[ColBG] = getcolor(NORMBGCOLOR); 1.45 dc.norm[ColFG] = getcolor(NORMFGCOLOR); 1.46 - dc.sel[ColBorder] = getcolor(SELBORDERCOLOR); 1.47 dc.sel[ColBG] = getcolor(SELBGCOLOR); 1.48 dc.sel[ColFG] = getcolor(SELFGCOLOR); 1.49 setfont(FONT);