diff options
| author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-03-23 19:21:31 +0200 |
|---|---|---|
| committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-03-23 19:21:31 +0200 |
| commit | c7e7da82eacb151a0d85aba646e35868d4373842 (patch) | |
| tree | 90d28e4c23c7579d9f499b951abce64daaa32acf /monsterwm.c | |
| parent | 1626f609a209bef0ff1d60b4e9ae2c664d604259 (diff) | |
no need to match whole string - match a substring
Diffstat (limited to 'monsterwm.c')
| -rw-r--r-- | monsterwm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/monsterwm.c b/monsterwm.c index 46ab69b..770cbbc 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -441,7 +441,7 @@ void maprequest(XEvent *e) { XClassHint ch = {0, 0}; if (XGetClassHint(dis, e->xmaprequest.window, &ch)) for (unsigned int i=0; i<LENGTH(rules); i++) - if (!strcmp(ch.res_class, rules[i].class) || !strcmp(ch.res_name, rules[i].class)) { + if (strstr(ch.res_class, rules[i].class) || strstr(ch.res_name, rules[i].class)) { follow = rules[i].follow; newdsk = (rules[i].desktop < 0) ? current_desktop:rules[i].desktop; floating = rules[i].floating; |
