From 09592e294300150a2c627a176bdbec0fedf4e1d9 Mon Sep 17 00:00:00 2001 From: okan Date: Wed, 31 Oct 2012 19:30:19 +0000 Subject: 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 --- calmwm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'calmwm.c') diff --git a/calmwm.c b/calmwm.c index a9a7cd2..c327eba 100644 --- a/calmwm.c +++ b/calmwm.c @@ -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.c,v 1.65 2012/08/07 14:05:49 okan Exp $ + * $OpenBSD: calmwm.c,v 1.66 2012/10/31 19:30:19 okan Exp $ */ #include @@ -34,6 +34,7 @@ #include "calmwm.h" +char **cwm_argv; Display *X_Dpy; Cursor Cursor_default; @@ -67,6 +68,7 @@ main(int argc, char **argv) warnx("no locale support"); mbtowc(NULL, NULL, MB_CUR_MAX); + cwm_argv = argv; while ((ch = getopt(argc, argv, "c:d:")) != -1) { switch (ch) { case 'c': -- cgit v1.2.3-2-gb3c3