]> git.corax.cc Git - dwm/commitdiff
Don't draw window titles in the status bar
authorMatthias Kruk <matthias.kruk@miraclelinux.com>
Thu, 24 Dec 2020 00:08:43 +0000 (09:08 +0900)
committerMatthias Kruk <matthias.kruk@miraclelinux.com>
Thu, 24 Dec 2020 00:08:43 +0000 (09:08 +0900)
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

diff --git a/dwm.c b/dwm.c
index 56c01f5ccd8b387b0e1191ed69d46748414ff0bf..cf29259df7b24b48946d53c67e3d63e4bb37beaa 100755 (executable)
--- 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