commit 310f259ae62f7cef1f900ebe7ac79194daf1943d
parent 990e3b9f70c015f3b8b2bac6ed953d3bffab6a93
Author: hhvn <dev@hhvn.uk>
Date: Sat, 11 Dec 2021 20:00:10 +0000
dwm.c config.h: negative monitor rule selects current monitor
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/config.h b/config.h
@@ -23,7 +23,7 @@ static const char *tags[] = { "I", "II", "III", "IV", "V", "VI", "VII", "VIII",
static const Rule rules[] = {
{ "Gimp", NULL, NULL, 1 << 7, 0, 0 },
{ "mpv", NULL, NULL, 1 << 1, 0, 0 },
- { "mpvrcp", NULL, NULL, 0, 1, 0 },
+ { "mpvrcp", NULL, NULL, 0, 1, -1 },
};
/* layout(s) */
diff --git a/dwm.c b/dwm.c
@@ -327,6 +327,8 @@ applyrules(Client *c)
for (m = mons; m && m->num != r->monitor; m = m->next);
if (m)
c->mon = m;
+ else
+ c->mon = selmon;
}
}
if (ch.res_class)