move the 2 small font helper functions to xutil.c

This commit is contained in:
okan
2013-05-19 23:38:20 +00:00
parent e41c84c752
commit 5b4c55616a
6 changed files with 32 additions and 63 deletions

View File

@ -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);
}