mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
onlyquitonempty: fix for compilation error when not using the restart sig patch ref. #196
This commit is contained in:
parent
67fc80803d
commit
efb9cc721e
4
dwm.c
4
dwm.c
@ -2755,7 +2755,11 @@ quit(const Arg *arg)
|
|||||||
for (m = mons; m; m = m->next)
|
for (m = mons; m; m = m->next)
|
||||||
for (c = m->clients; c; c = c->next, n++);
|
for (c = m->clients; c; c = c->next, n++);
|
||||||
|
|
||||||
|
#if RESTARTSIG_PATCH
|
||||||
if (restart || n <= quit_empty_window_count)
|
if (restart || n <= quit_empty_window_count)
|
||||||
|
#else
|
||||||
|
if (n <= quit_empty_window_count)
|
||||||
|
#endif // RESTARTSIG_PATCH
|
||||||
running = 0;
|
running = 0;
|
||||||
else
|
else
|
||||||
fprintf(stderr, "[dwm] not exiting (n=%d)\n", n);
|
fprintf(stderr, "[dwm] not exiting (n=%d)\n", n);
|
||||||
|
Loading…
Reference in New Issue
Block a user