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 --- calmwm.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'calmwm.h') diff --git a/calmwm.h b/calmwm.h index 5de748a..0f5d3f3 100644 --- a/calmwm.h +++ b/calmwm.h @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: calmwm.h,v 1.205 2013/05/19 23:38:21 okan Exp $ + * $OpenBSD: calmwm.h,v 1.206 2013/05/20 20:21:04 okan Exp $ */ #ifndef _CALMWM_H_ @@ -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 *); -- cgit v1.2.3-2-gb3c3