diff options
author | okan <okan> | 2012-10-31 19:30:19 +0000 |
---|---|---|
committer | okan <okan> | 2012-10-31 19:30:19 +0000 |
commit | 4fb420514d73699acfc7ec1c35124cf7819a277f (patch) | |
tree | df19048fe40a84ea2ca51ebfdcf360f3ffcb8dbc /menu.c | |
parent | c256052308d9135454b91fa16ba7aaef97923b4b (diff) | |
download | cwm-4fb420514d73699acfc7ec1c35124cf7819a277f.tar.gz cwm-4fb420514d73699acfc7ec1c35124cf7819a277f.tar.xz cwm-4fb420514d73699acfc7ec1c35124cf7819a277f.zip |
replace 'reload' with 'restart', which merely re-exec's cwm using the
existing argv; same idea with respect to argv saving as Alexander Polakov. reload support was half-complete and is getting in the way. agreed to by many
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/menu.c b/menu.c index 7b6e0dc..4a532a9 100644 --- a/menu.c +++ b/menu.c @@ -77,8 +77,6 @@ menu_init(struct screen_ctx *sc) { XGCValues gv; - if (sc->menuwin) - XDestroyWindow(X_Dpy, sc->menuwin); sc->menuwin = XCreateSimpleWindow(X_Dpy, sc->rootwin, 0, 0, 1, 1, Conf.bwidth, sc->color[CWM_COLOR_FG_MENU].pixel, @@ -89,8 +87,6 @@ menu_init(struct screen_ctx *sc) gv.background = sc->color[CWM_COLOR_BG_MENU].pixel; gv.function = GXxor; - if (sc->gc) - XFreeGC(X_Dpy, sc->gc); sc->gc = XCreateGC(X_Dpy, sc->menuwin, GCForeground|GCBackground|GCFunction, &gv); } |