support spawning dmenu with more than 10 monitors

This commit is contained in:
Hiltjo Posthuma committed 2026-10-16 13:26:00 +02:00
1 parent 1d07715ebd
commit bca7cf2bd9
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1657,7 +1657,7 @@ spawn(const Arg *arg)
pid_t pid;
if (arg->v == dmenucmd)
dmenumon[0] = '0' + selmon->num;
snprintf(dmenumon, sizeof(dmenumon), "%d", selmon->num);
if ((pid = fork()) == -1) {
fprintf(stderr, "dwm: fork failed: %s\n", strerror(errno));