From 50c0a4eef624cf43a9c652f286e65b54b3ccde88 Mon Sep 17 00:00:00 2001 From: okan Date: Tue, 2 Jan 2018 14:04:58 +0000 Subject: [PATCH] Only exec the fallback when in CWM_EXEC_WM state. Broken quit noticed by Ve Telko. --- calmwm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/calmwm.c b/calmwm.c index 3601d6c..3e61ae7 100644 --- a/calmwm.c +++ b/calmwm.c @@ -131,11 +131,11 @@ main(int argc, char **argv) } } x_teardown(); - if (cwm_status == CWM_EXEC_WM) + if (cwm_status == CWM_EXEC_WM) { u_exec(Conf.wm_argv); - - warnx("'%s' failed to start, restarting fallback", Conf.wm_argv); - u_exec(fallback); + warnx("'%s' failed to start, restarting fallback", Conf.wm_argv); + u_exec(fallback); + } return(0); }