summaryrefslogtreecommitdiff
path: root/app/cwm/calmwm.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2018-01-02 14:04:59 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2018-01-02 14:04:59 +0000
commitbe30e6efb92db21299b936c0e068e7088941e9c9 (patch)
tree574e43c946b5765a7abe9d6e8e7d1fd9139585d5 /app/cwm/calmwm.c
parent0d5d2862b6f63a30b5faa64d248eda19e361fad9 (diff)
Only exec the fallback when in CWM_EXEC_WM state.
Broken quit noticed by Ve Telko.
Diffstat (limited to 'app/cwm/calmwm.c')
-rw-r--r--app/cwm/calmwm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/cwm/calmwm.c b/app/cwm/calmwm.c
index 319beaed9..a69bf8654 100644
--- a/app/cwm/calmwm.c
+++ b/app/cwm/calmwm.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: calmwm.c,v 1.106 2017/12/29 20:09:19 okan Exp $
+ * $OpenBSD: calmwm.c,v 1.107 2018/01/02 14:04:58 okan Exp $
*/
#include <sys/types.h>
@@ -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);
}