X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/975b459c17b7438090afd6e1381b2c5fc749f5b8..292ccc4c43d9529cb6db0973fcab6e24c73607a5:/draw.c diff --git a/draw.c b/draw.c index 6466f41..3b6967c 100644 --- a/draw.c +++ b/draw.c @@ -109,9 +109,9 @@ drawstatus() dc.x += dc.w; dc.w = textw(tags[i]); if(istile) - drawtext(tags[i], (i == tsel)); + drawtext(tags[i], seltag[i]); else - drawtext(tags[i], (i != tsel)); + drawtext(tags[i], !seltag[i]); } x = dc.x + dc.w; dc.w = textw(stext);