aboutsummaryrefslogtreecommitdiffstats
path: root/dwl.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 364171b..133e6ed 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1336,7 +1336,8 @@ createmon(struct wl_listener *listener, void *data)
/* Initialize monitor state using configured rules */
m->tagset[0] = m->tagset[1] = 1;
for (r = monrules; r < END(monrules); r++) {
- if (!r->name || strstr(wlr_output->name, r->name)) {
+ if (!r->name || strstr(wlr_output->name, r->name) || ((wlr_output->description != NULL) && strstr(wlr_output->description,r->name))) {
+ printf("Model %s\n",wlr_output->model);
m->m.x = r->x;
m->m.y = r->y;
m->mfact = r->mfact;