From a4fa4ac623b54b25b58caaba5b717165be6915bb Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 20 May 2013 20:21:04 +0000 Subject: - configure menuwin with the screen, then create the xft drawable using the menu window since that's the only place on which we draw - elminate the need to change the drawable on every font draw --- mousefunc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mousefunc.c') diff --git a/mousefunc.c b/mousefunc.c index 98b96df..1b52433 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.51 2013/05/19 23:38:21 okan Exp $ + * $OpenBSD: mousefunc.c,v 1.52 2013/05/20 20:21:04 okan Exp $ */ #include @@ -63,7 +63,7 @@ mousefunc_sweep_draw(struct client_ctx *cc) XMapWindow(X_Dpy, sc->menuwin); XClearWindow(X_Dpy, sc->menuwin); - xu_xft_draw(sc, asize, sc->menuwin, CWM_COLOR_MENU_FONT, + xu_xft_draw(sc, asize, CWM_COLOR_MENU_FONT, 0, sc->xftfont->ascent + 1); } -- cgit v1.2.3-2-gb3c3