diff options
| author | Alexander Leonhardt <equinox.salexander@gmail.com> | |
|---|---|---|
| 2026-09-15 20:02:58 +0200 | ||
| committer | Alexander Leonhardt <equinox.salexander@gmail.com> | |
| 2026-09-15 20:02:58 +0200 | ||
| commit | 1340e17f9fc15862282c095798e7b4471ebf9cda (patch) | |
| tree | ef3cd7b60e1f51bd22717af3cd548cb5508599eb /dwl.c | |
| parent | b9362d380e6c8d031e1c099349e5210ec1f83b16 (diff) | |
| download | dwl-1340e17f9fc15862282c095798e7b4471ebf9cda.tar.gz dwl-1340e17f9fc15862282c095798e7b4471ebf9cda.tar.bz2 dwl-1340e17f9fc15862282c095798e7b4471ebf9cda.zip | |
Allowed matching against description
@@ -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; |