diff options
author | okan <okan> | 2013-05-19 23:38:20 +0000 |
---|---|---|
committer | okan <okan> | 2013-05-19 23:38:20 +0000 |
commit | 5b4c55616a58c058cb1f3f80c4e04a24b8e824a3 (patch) | |
tree | e4f2b1bad1a859085f63bb4e742b35aec4bba1d7 /mousefunc.c | |
parent | e41c84c752c46b78c0996489e150515751ae8ac8 (diff) | |
download | cwm-5b4c55616a58c058cb1f3f80c4e04a24b8e824a3.tar.gz cwm-5b4c55616a58c058cb1f3f80c4e04a24b8e824a3.tar.xz cwm-5b4c55616a58c058cb1f3f80c4e04a24b8e824a3.zip |
move the 2 small font helper functions to xutil.c
Diffstat (limited to 'mousefunc.c')
-rw-r--r-- | mousefunc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mousefunc.c b/mousefunc.c index 205f073..64670b5 100644 --- a/mousefunc.c +++ b/mousefunc.c @@ -58,11 +58,12 @@ mousefunc_sweep_draw(struct client_ctx *cc) XReparentWindow(X_Dpy, sc->menuwin, cc->win, 0, 0); XMoveResizeWindow(X_Dpy, sc->menuwin, 0, 0, - font_width(sc->xftfont, asize, strlen(asize)), sc->xftfont->height); + xu_xft_width(sc->xftfont, asize, strlen(asize)), + sc->xftfont->height); XMapWindow(X_Dpy, sc->menuwin); XClearWindow(X_Dpy, sc->menuwin); - font_draw(sc, asize, sc->menuwin, CWM_COLOR_MENU_FONT, + xu_xft_draw(sc, asize, sc->menuwin, CWM_COLOR_MENU_FONT, 0, sc->xftfont->ascent + 1); } |