summaryrefslogtreecommitdiffhomepage
path: root/dwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwm.c')
-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);