diff options
author | okan | 2015-09-16 17:58:25 +0000 |
---|---|---|
committer | okan | 2015-09-16 17:58:25 +0000 |
commit | ea3954427e3e3453eba49e302bf4e3a0272b172e (patch) | |
tree | 6c8c6c794afa080f95f35faa5c8ba69a756d4a90 /conf.c | |
parent | 7d8a5a92b3e6bba227470f31a83772cf42b00fa9 (diff) | |
download | cwm-ea3954427e3e3453eba49e302bf4e3a0272b172e.tar.gz |
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 '')
-rw-r--r-- | conf.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: conf.c,v 1.197 2015/08/24 15:42:57 okan Exp $ + * $OpenBSD: conf.c,v 1.198 2015/09/16 17:58:25 okan Exp $ */ #include <sys/types.h> @@ -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} }, |