- 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
This commit is contained in:
okan
2013-05-20 20:21:04 +00:00
parent e14123210a
commit 270df196ac
6 changed files with 16 additions and 24 deletions

View File

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