aboutsummaryrefslogtreecommitdiffstats
path: root/mousefunc.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--mousefunc.c7
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);
}