diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-02-13 20:53:25 -0500 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2008-02-14 19:40:03 +0100 |
| commit | 27177e498b737cc351ce446f0b89010bcf29bfcd (patch) | |
| tree | 704c066b2e58301292ed82c99b6da8f5de739494 /openbox/client.c | |
| parent | 619fd7e666944aa83c636d14cd2777cbd5dc1094 (diff) | |
let you match per-app settings based on the window type
Diffstat (limited to 'openbox/client.c')
| -rw-r--r-- | openbox/client.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openbox/client.c b/openbox/client.c index 43a2f551..371eb087 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -844,13 +844,15 @@ static ObAppSettings *client_get_settings_state(ObClient *self) !g_pattern_match(app->name, strlen(self->name), self->name, NULL)) match = FALSE; else if (app->class && - !g_pattern_match(app->class, - strlen(self->class), self->class, NULL)) + !g_pattern_match(app->class, + strlen(self->class), self->class, NULL)) match = FALSE; else if (app->role && !g_pattern_match(app->role, strlen(self->role), self->role, NULL)) match = FALSE; + else if ((signed)app->type >= 0 && app->type != self->type) + match = FALSE; if (match) { ob_debug("Window matching: %s\n", app->name); |
