summary refs log tree commit diff
path: root/conf.c
diff options
context:
space:
mode:
authorokan <okan>2015-09-16 17:58:25 +0000
committerokan <okan>2015-09-16 17:58:25 +0000
commit0fdcf3f3dfd336e7593482286dff49cd8be6ce44 (patch)
tree93ef81d5c129af3aeae6650297f0276300882818 /conf.c
parent47a10cc05549b0a94e3606ca7be9fe626754d12d (diff)
downloadcwm-0fdcf3f3dfd336e7593482286dff49cd8be6ce44.tar.gz
cwm-0fdcf3f3dfd336e7593482286dff49cd8be6ce44.tar.xz
cwm-0fdcf3f3dfd336e7593482286dff49cd8be6ce44.zip
On execwm, we should properly release resources before exec'ing into a
new window manager; so allow CWM_EXEC_WM to assign new wm to wm_argv and
pass through cwm_status (now EXECWM) so that x_teardown() gets called
before exec'ing the new window manager.  Removes the need for a separate
x_restart() now, using new wm_argv; and consolidates errno for execvp.
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf.c b/conf.c
index 608acf0..7f4ec37 100644
--- a/conf.c
+++ b/conf.c
@@ -400,7 +400,7 @@ static const struct {
 	{ "vmaximize", kbfunc_client_toggle_vmaximize, CWM_WIN, {0} },
 	{ "hmaximize", kbfunc_client_toggle_hmaximize, CWM_WIN, {0} },
 	{ "freeze", kbfunc_client_toggle_freeze, CWM_WIN, {0} },
-	{ "restart", kbfunc_cwm_status, 0, {.i = CWM_RESTART} },
+	{ "restart", kbfunc_cwm_status, 0, {.i = CWM_EXECWM} },
 	{ "quit", kbfunc_cwm_status, 0, {.i = CWM_QUIT} },
 	{ "exec", kbfunc_exec, 0, {.i = CWM_EXEC_PROGRAM} },
 	{ "exec_wm", kbfunc_exec, 0, {.i = CWM_EXEC_WM} },