Introduction
Introduction Statistics Contact Development Disclaimer Help
applied Jochen's drw_text patch, thanks - dwm - dynamic window manager
git clone git://git.suckless.org/dwm
Log
Files
Refs
README
LICENSE
---
commit b800a1d1366c2ba22b7c934f7527de0b1542fe78
parent 33a74489f036600bb80a3c34fcdf10e5f9dafae1
Author: Anselm R Garbe <[email protected]>
Date: Sun, 23 Jun 2013 21:53:09 +0200
applied Jochen's drw_text patch, thanks
Diffstat:
M drw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/drw.c b/drw.c
@@ -157,7 +157,7 @@ drw_text(Drw *drw, int x, int y, unsigned int w, unsigned i…
ty = y + (h / 2) - (th / 2) + drw->font->ascent;
tx = x + (h / 2);
/* shorten text if necessary */
- for(len = MIN(olen, sizeof buf); len && tex.w > w - tex.h; len--)
+ for(len = MIN(olen, sizeof buf); len && (tex.w > w - tex.h || w < tex.…
drw_font_getexts(drw->font, text, len, &tex);
if(!len)
return;
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.