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
This commit is contained in:
okan
2012-10-31 19:30:19 +00:00
parent c256052308
commit 4fb420514d
9 changed files with 17 additions and 56 deletions

View File

@@ -35,6 +35,7 @@
#define KNOWN_HOSTS ".ssh/known_hosts"
#define HASH_MARKER "|1|"
extern char **cwm_argv;
extern sig_atomic_t xev_quit;
void
@@ -490,7 +491,8 @@ kbfunc_quit_wm(struct client_ctx *cc, union arg *arg)
}
void
kbfunc_reload(struct client_ctx *cc, union arg *arg)
kbfunc_restart(struct client_ctx *cc, union arg *arg)
{
conf_reload(&Conf);
(void)setsid();
(void)execvp(cwm_argv[0], cwm_argv);
}