summary refs log tree commit diff
path: root/conf.c
diff options
context:
space:
mode:
authorokan <okan>2016-09-29 00:21:55 +0000
committerokan <okan>2016-09-29 00:21:55 +0000
commit0e8c7066333ffd331743658e82cfedaf3e0078a2 (patch)
tree2a9565441e857ffa4e773b87f84ad1fb972f01b2 /conf.c
parent92b81d3df5d28e86e849a414eb9bc6cebe0c5f3f (diff)
downloadcwm-0e8c7066333ffd331743658e82cfedaf3e0078a2.tar.gz
cwm-0e8c7066333ffd331743658e82cfedaf3e0078a2.tar.xz
cwm-0e8c7066333ffd331743658e82cfedaf3e0078a2.zip
Mechanical change: move screen menu bits to their own struct.
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/conf.c b/conf.c
index 7f7300e..c0c7b41 100644
--- a/conf.c
+++ b/conf.c
@@ -162,13 +162,13 @@ conf_screen(struct screen_ctx *sc)
 		}
 	}
 
-	sc->menuwin = XCreateSimpleWindow(X_Dpy, sc->rootwin, 0, 0, 1, 1,
+	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->xftdraw = XftDrawCreate(X_Dpy, sc->menuwin, visual, colormap);
-	if (sc->xftdraw == NULL)
+	sc->menu.xftdraw = XftDrawCreate(X_Dpy, sc->menu.win, visual, colormap);
+	if (sc->menu.xftdraw == NULL)
 		errx(1, "XftDrawCreate");
 
 	conf_grab_kbd(sc->rootwin);