summaryrefslogtreecommitdiff
path: root/src/actions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions.c')
-rw-r--r--src/actions.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/actions.c b/src/actions.c
index 8d301c6..0e80fbb 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -2408,13 +2408,8 @@ spawn(char *cmd)
cmdret *
cmd_newwm(int interactive, struct cmdarg **args)
{
- PRINT_DEBUG (("Switching to %s\n", ARG_STRING(0)));
-
- putenv(current_screen()->display_string);
- execlp(ARG_STRING(0), ARG_STRING(0), 0);
-
- PRINT_ERROR (("exec %s ", ARG_STRING(0)));
- perror(" failed");
+ /* in the event loop, this will switch WMs. */
+ rp_exec_newwm = xstrdup (ARG_STRING(0));
return cmdret_new (NULL, RET_SUCCESS);
}