- 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

@@ -426,7 +426,6 @@ struct menu *menu_filter(struct screen_ctx *, struct menu_q *,
char *, char *, int,
void (*)(struct menu_q *, struct menu_q *, char *),
void (*)(struct menu *, int));
void menu_init(struct screen_ctx *);
void menuq_clear(struct menu_q *);
int parse_config(const char *, struct conf *);
@@ -463,7 +462,7 @@ void xu_ptr_ungrab(void);
void xu_sendmsg(Window, Atom, long);
void xu_set_wm_state(Window win, int);
void xu_xft_draw(struct screen_ctx *, const char *,
Drawable, int, int, int);
int, int, int);
int xu_xft_width(XftFont *, const char *, int);
void xu_xorcolor(XftColor, XftColor, XftColor *);