summary refs log tree commit diff
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan <okan>2013-05-14 12:35:56 +0000
committerokan <okan>2013-05-14 12:35:56 +0000
commitc637a5404809f3856e5f9b8890f6ef0fe8f55fe8 (patch)
tree2f4816fc6c911b0e7126ae4247ba6cd3a55b3702 /mousefunc.c
parent112f616d1d3a6377407071f4327c1a2b31cb6e9f (diff)
downloadcwm-c637a5404809f3856e5f9b8890f6ef0fe8f55fe8.tar.gz
cwm-c637a5404809f3856e5f9b8890f6ef0fe8f55fe8.tar.xz
cwm-c637a5404809f3856e5f9b8890f6ef0fe8f55fe8.zip
- let callers of font_draw figure out (and pass) the color instead of an
  'active' flag.
- use strlen() inside of font_draw; the only instance where it wasn't
  used happened to be ignored on a subsequent draw.
Diffstat (limited to 'mousefunc.c')
-rw-r--r--mousefunc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mousefunc.c b/mousefunc.c
index e43fd1b..205f073 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -62,8 +62,8 @@ mousefunc_sweep_draw(struct client_ctx *cc)
 	XMapWindow(X_Dpy, sc->menuwin);
 	XClearWindow(X_Dpy, sc->menuwin);
 
-	font_draw(sc, asize, strlen(asize), sc->menuwin, 0, 0,
-	    sc->xftfont->ascent + 1);
+	font_draw(sc, asize, sc->menuwin, CWM_COLOR_MENU_FONT,
+	    0, sc->xftfont->ascent + 1);
 }
 
 void