From 0bda8f76067b737f34c11ef094b349c0c12fe118 Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 4 Mar 2019 19:28:17 +0000 Subject: Separate out the menu window from the client resize/move geom window; in each case, create and destroy on-demand. Isolate more menu specific code. --- conf.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'conf.c') diff --git a/conf.c b/conf.c index d600728..30c803e 100644 --- a/conf.c +++ b/conf.c @@ -501,16 +501,6 @@ conf_screen(struct screen_ctx *sc) } } - sc->menu.win = XCreateSimpleWindow(X_Dpy, sc->rootwin, 0, 0, 1, 1, - Conf.bwidth, - sc->xftcolor[CWM_COLOR_MENU_FG].pixel, - sc->xftcolor[CWM_COLOR_MENU_BG].pixel); - - sc->menu.xftdraw = XftDrawCreate(X_Dpy, sc->menu.win, - sc->visual, sc->colormap); - if (sc->menu.xftdraw == NULL) - errx(1, "%s: XftDrawCreate", __func__); - conf_grab_kbd(sc->rootwin); } -- cgit 1.4.1