draw.c
changeset 837 123231b9eb87
parent 830 5a4fd8fec414
child 850 2ea201354cf0
equal deleted inserted replaced
836:52c1caae3fab 837:123231b9eb87
    79 	drawtext(stext, dc.norm);
    79 	drawtext(stext, dc.norm);
    80 	if((dc.w = dc.x - x) > bh) {
    80 	if((dc.w = dc.x - x) > bh) {
    81 		dc.x = x;
    81 		dc.x = x;
    82 		if(sel) {
    82 		if(sel) {
    83 			drawtext(sel->name, dc.sel);
    83 			drawtext(sel->name, dc.sel);
    84 			drawsquare(sel->ismax, sel->isuntiled, dc.sel);
    84 			drawsquare(sel->ismax, sel->isfloating, dc.sel);
    85 		}
    85 		}
    86 		else
    86 		else
    87 			drawtext(NULL, dc.norm);
    87 			drawtext(NULL, dc.norm);
    88 	}
    88 	}
    89 	XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, sw, bh, 0, 0);
    89 	XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, sw, bh, 0, 0);