diff options
author | okan | 2013-05-19 23:38:20 +0000 |
---|---|---|
committer | okan | 2013-05-19 23:38:20 +0000 |
commit | 7c22f25dc0a96380c81fbb79218bd21cf3812004 (patch) | |
tree | 7fd1e8847bcae6bca0793b2f7907e0776a9bae01 /mousefunc.c | |
parent | 1f94cf68e821c1e6e3850f540d098737baf9ba00 (diff) | |
download | cwm-7c22f25dc0a96380c81fbb79218bd21cf3812004.tar.gz |
move the 2 small font helper functions to xutil.c
Diffstat (limited to 'mousefunc.c')
-rw-r--r-- | mousefunc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mousefunc.c b/mousefunc.c index f16ca95..98b96df 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.50 2013/05/14 12:35:56 okan Exp $ + * $OpenBSD: mousefunc.c,v 1.51 2013/05/19 23:38:21 okan Exp $ */ #include <sys/param.h> @@ -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); } |