about summary refs log tree commit diff
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan <okan>2013-05-20 20:21:04 +0000
committerokan <okan>2013-05-20 20:21:04 +0000
commit270df196ac17363536c44fe342b4e71e1c8450e3 (patch)
tree73f285a3f099b8b96d5d7e8b8e9b297c01613842 /mousefunc.c
parente14123210a7773a0fda562eb367d71482c872e60 (diff)
downloadcwm-270df196ac17363536c44fe342b4e71e1c8450e3.tar.gz
cwm-270df196ac17363536c44fe342b4e71e1c8450e3.tar.xz
cwm-270df196ac17363536c44fe342b4e71e1c8450e3.zip
- 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
Diffstat (limited to 'mousefunc.c')
-rw-r--r--mousefunc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mousefunc.c b/mousefunc.c
index 64670b5..a41a3ad 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -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);
 }