Revert "Remove dmenumon variable"

This reverts commit c2b748e7931e5f28984efc236f9b1a212dbc65e8.

Revert back this change. It seems to not be an edge-case anymore since
multiple users have asked about this new behaviour now.
This commit is contained in:
Hiltjo Posthuma
2022-10-28 16:37:56 +02:00
parent 50ad171eea
commit ba56fe9fea
2 changed files with 4 additions and 1 deletions

2
dwm.c
View File

@ -1639,6 +1639,8 @@ sigchld(int unused)
void
spawn(const Arg *arg)
{
if (arg->v == dmenucmd)
dmenumon[0] = '0' + selmon->num;
if (fork() == 0) {
if (dpy)
close(ConnectionNumber(dpy));