diff options
author | okan | 2013-05-20 20:21:04 +0000 |
---|---|---|
committer | okan | 2013-05-20 20:21:04 +0000 |
commit | a4fa4ac623b54b25b58caaba5b717165be6915bb (patch) | |
tree | 16391330bcca29b3937500ccd6fb18ebe57b653f /mousefunc.c | |
parent | e9251684bd2c326cd3a874f932ccbca1c93b4e2d (diff) | |
download | cwm-a4fa4ac623b54b25b58caaba5b717165be6915bb.tar.gz |
- 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 '')
-rw-r--r-- | mousefunc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <sys/param.h> @@ -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); } |