X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=draw.c;h=eaad7fc4748f9cba3e169d248e221af733576466;hp=06acc74c0495c20aa574271026ff05c658e510c2;hb=9800518ae3505e54c0e52ea3d40050f279e722d6;hpb=d934296476be7345842fec1a2630d1752c704078 diff --git a/draw.c b/draw.c index 06acc74..eaad7fc 100644 --- a/draw.c +++ b/draw.c @@ -1,9 +1,4 @@ -/* © 2006-2007 Anselm R. Garbe - * © 2006-2007 Sander van Dijk - * © 2006-2007 Jukka Salmi - * © 2007 Premysl Hruby - * © 2007 Szabolcs Nagy - * See LICENSE file for license details. */ +/* See LICENSE file for copyright and license details. */ #include "dwm.h" #include @@ -54,13 +49,13 @@ textnw(const char *text, unsigned int len) { /* extern */ void -drawstatus(void) { +drawbar(void) { int i, x; dc.x = dc.y = 0; for(i = 0; i < ntags; i++) { dc.w = textw(tags[i]); - if(seltag[i]) { + if(seltags[i]) { drawtext(tags[i], dc.sel); drawsquare(sel && sel->tags[i], isoccupied(i), dc.sel); } @@ -71,7 +66,7 @@ drawstatus(void) { dc.x += dc.w; } dc.w = blw; - drawtext(lt->symbol, dc.norm); + drawtext(getsymbol(), dc.norm); x = dc.x + dc.w; dc.w = textw(stext); dc.x = sw - dc.w;