void
drawtext(const char *text, unsigned long col[ColLast], Bool invert) {
- int i, x, y, h, len, olen;
char buf[256];
+ int i, x, y, h, len, olen;
XRectangle r = { dc.x, dc.y, dc.w, dc.h };
XSetForeground(dpy, dc.gc, col[invert ? ColFG : ColBG]);
void
manage(Window w, XWindowAttributes *wa) {
Client *c, *t = NULL;
- Window trans = 0;
+ Window trans = None;
XWindowChanges wc;
if(!(c = calloc(1, sizeof(Client))))
else
applyrules(c);
if(!c->isfloating)
- c->isfloating = trans || c->isfixed;
+ c->isfloating = trans != None || c->isfixed;
if(c->isfloating)
XRaiseWindow(dpy, c->win);
attach(c);