From bd1dad402457696bc85c71879328d3c3db146164 Mon Sep 17 00:00:00 2001 From: okan Date: Tue, 14 May 2013 12:35:56 +0000 Subject: - 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. --- mousefunc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mousefunc.c') diff --git a/mousefunc.c b/mousefunc.c index 0824674..f16ca95 100644 --- a/mousefunc.c +++ b/mousefunc.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: mousefunc.c,v 1.49 2013/05/02 19:33:17 okan Exp $ + * $OpenBSD: mousefunc.c,v 1.50 2013/05/14 12:35:56 okan Exp $ */ #include @@ -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 -- cgit v1.2.3-2-gb3c3