summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2021-11-11 09:21:58 +0100
committerbakkeby <[email protected]>2021-11-11 09:21:58 +0100
commitefb9cc721e77128d28142893fe419e044e1ca1c7 (patch)
treebc110113e16ec9e0d18682b826b1917bca0ae488
parent67fc80803d09529d0edff02c5079a71387853a10 (diff)
downloaddwm-flexipatch-efb9cc721e77128d28142893fe419e044e1ca1c7.tar.gz
dwm-flexipatch-efb9cc721e77128d28142893fe419e044e1ca1c7.zip
onlyquitonempty: fix for compilation error when not using the restart sig patch ref. #196
-rw-r--r--dwm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index 5d53587..fb9ced1 100644
--- a/dwm.c
+++ b/dwm.c
@@ -2755,7 +2755,11 @@ quit(const Arg *arg)
for (m = mons; m; m = m->next)
for (c = m->clients; c; c = c->next, n++);
+ #if RESTARTSIG_PATCH
if (restart || n <= quit_empty_window_count)
+ #else
+ if (n <= quit_empty_window_count)
+ #endif // RESTARTSIG_PATCH
running = 0;
else
fprintf(stderr, "[dwm] not exiting (n=%d)\n", n);