diff options
| author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2026-10-13 15:00:21 +0200 |
|---|---|---|
| committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2026-10-16 13:26:00 +0200 |
| commit | bca7cf2bd91760855408326411a659ff72895860 (patch) | |
| tree | 9a3649a2319cf80ff2f0ae3cd9c14274dcdfc427 /dwm.c | |
| parent | print an error if fork failed (resource / process limits) (diff) | |
| download | dwm-bca7cf2bd91760855408326411a659ff72895860.tar.gz dwm-bca7cf2bd91760855408326411a659ff72895860.zip | |
support spawning dmenu with more than 10 monitors
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -1657,7 +1657,7 @@ spawn(const Arg *arg) | |||
| 1657 | pid_t pid; | 1657 | pid_t pid; |
| 1658 | 1658 | ||
| 1659 | if (arg->v == dmenucmd) | 1659 | if (arg->v == dmenucmd) |
| 1660 | dmenumon[0] = '0' + selmon->num; | 1660 | snprintf(dmenumon, sizeof(dmenumon), "%d", selmon->num); |
| 1661 | 1661 | ||
| 1662 | if ((pid = fork()) == -1) { | 1662 | if ((pid = fork()) == -1) { |
| 1663 | fprintf(stderr, "dwm: fork failed: %s\n", strerror(errno)); | 1663 | fprintf(stderr, "dwm: fork failed: %s\n", strerror(errno)); |
