From f2a3078ad1e0944f6bd9eeccb13183d5f09a834c Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Thu, 24 Dec 2020 09:08:43 +0900 Subject: [PATCH] Don't draw window titles in the status bar Certain UTF-8 glyphs cause issues with underlying libraries, causing dwm to crash. Websites such as Twitter will frequently include such glyphs in their title, causing dwm to try to render them in the status bar. This commit keeps dwm from displaying window titles in the status bar. --- dwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwm.c b/dwm.c index 56c01f5..cf29259 100755 --- a/dwm.c +++ b/dwm.c @@ -870,7 +870,7 @@ drawbar(Monitor *m) { dc.x = x; if(m->sel) { col = m == selmon ? dc.sel : dc.norm; - drawtext(m->sel->name, col, False); + /* drawtext(m->sel->name, col, False); */ drawsquare(m->sel->isfixed, m->sel->isfloating, False, col); } else -- 2.47.3