aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorokan2015-09-16 17:58:25 +0000
committerokan2015-09-16 17:58:25 +0000
commitea3954427e3e3453eba49e302bf4e3a0272b172e (patch)
tree6c8c6c794afa080f95f35faa5c8ba69a756d4a90 /conf.c
parent7d8a5a92b3e6bba227470f31a83772cf42b00fa9 (diff)
downloadcwm-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 'conf.c')
-rw-r--r--conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/conf.c b/conf.c
index 92594c4..7d5bfab 100644
--- a/conf.c
+++ b/conf.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: 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} },