make dwm’s titlebar having the `normal’ background color
Vanilla dwm gives the titlebar (where the title of the focused window is printed) the “selected” background color, if this is the screen we are on.
I didn’t like that and since I don’t have a dualhead configuration and there are other methods of determining the active screen (only the active screen actually puts text in the titlebar), I changed that. It’s just one LOC, so nothing special, but here is the patch:
diff -r 4548c824adac dwm.c
--- a/dwm.c Sun Jul 10 21:25:23 2011 +0100
+++ b/dwm.c Mon Jul 11 02:18:32 2011 +0200
@@ -760,7 +760,7 @@
if((dc.w = dc.x - x) > bh) {
dc.x = x;
if(m->sel) {
- col = m == selmon ? dc.sel : dc.norm;
+ col = dc.norm;
drawtext(m->sel->name, col, False);
drawsquare(m->sel->isfixed, m->sel->isfloating, False, col);
}
Nothing huge, but well, it was annoying :)
(Sorry for not seperating the patch, but external hosting just didn’t seem right, and tumblr only hosts photos)
