diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2012-10-31 19:30:20 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2012-10-31 19:30:20 +0000 |
commit | 17cb53f9b11452cfdeefa8e6cb8e2d749aaa22ad (patch) | |
tree | f1abb4670fd1f503cea2dd7e67ad4c1d2da9010b /app/cwm/menu.c | |
parent | 39ac1b1cfdfa103f5959bb2c021f5dbf9d0db26b (diff) |
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 'app/cwm/menu.c')
-rw-r--r-- | app/cwm/menu.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/cwm/menu.c b/app/cwm/menu.c index fa44cfb74..568727f67 100644 --- a/app/cwm/menu.c +++ b/app/cwm/menu.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: menu.c,v 1.40 2012/10/23 16:13:59 okan Exp $ + * $OpenBSD: menu.c,v 1.41 2012/10/31 19:30:19 okan Exp $ */ #include <sys/param.h> @@ -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); } |