diff options
author | okan | 2013-05-14 12:35:56 +0000 |
---|---|---|
committer | okan | 2013-05-14 12:35:56 +0000 |
commit | bd1dad402457696bc85c71879328d3c3db146164 (patch) | |
tree | 758002659a156353bce0371de43363f407bac737 /mousefunc.c | |
parent | f33b33868923e469c45b593d6699ed2f297daf3b (diff) | |
download | cwm-bd1dad402457696bc85c71879328d3c3db146164.tar.gz |
- 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 '')
-rw-r--r-- | mousefunc.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 <sys/param.h> @@ -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 |