JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
removed client title bar
[dwm.git] / draw.c
diff --git a/draw.c b/draw.c
index c4448db..0ee362c 100644 (file)
--- a/draw.c
+++ b/draw.c
@@ -102,7 +102,7 @@ drawall(void) {
        Client *c;
 
        for(c = clients; c; c = getnext(c->next))
-               drawtitle(c);
+               drawclient(c);
        drawstatus();
 }
 
@@ -120,7 +120,7 @@ drawstatus(void) {
                dc.x += dc.w;
        }
        dc.w = bmw;
-       drawtext(arrange == dofloat ?  FLOATSYMBOL : TILESYMBOL, dc.status, False, False);
+       drawtext(mtext, dc.status, False, False);
        x = dc.x + dc.w;
        dc.w = textw(stext);
        dc.x = bw - dc.w;
@@ -138,19 +138,13 @@ drawstatus(void) {
 }
 
 void
-drawtitle(Client *c) {
+drawclient(Client *c) {
        if(c == sel && issel) {
                drawstatus();
-               XUnmapWindow(dpy, c->twin);
                XSetWindowBorder(dpy, c->win, dc.sel[ColBG]);
                return;
        }
        XSetWindowBorder(dpy, c->win, dc.norm[ColBG]);
-       XMapWindow(dpy, c->twin);
-       dc.x = dc.y = 0;
-       dc.w = c->tw;
-       drawtext(c->name, dc.norm, False,False);
-       XCopyArea(dpy, dc.drawable, c->twin, dc.gc, 0, 0, c->tw, c->th, 0, 0);
        XSync(dpy, False);
 }