summaryrefslogtreecommitdiff
path: root/openbox/client.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2006-06-09 14:52:06 +0000
committerMikael Magnusson <mikachu@comhem.se>2006-06-09 14:52:06 +0000
commite72a1232fa73450c4bfefef5657971ecbacb8f70 (patch)
treea9f017df3b867aa7f1d346394645e084e002411e /openbox/client.c
parentd4b734045463b38ef61f259a14227e0f9768c470 (diff)
if this works i will be a bit amazed, add class matching, and allow to match either name or class or both
Diffstat (limited to 'openbox/client.c')
-rw-r--r--openbox/client.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/openbox/client.c b/openbox/client.c
index 4d0ad534..ccd30787 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -213,7 +213,12 @@ static ObAppSettings *get_settings(ObClient *client)
while (a) {
ObAppSettings *app = (ObAppSettings *) a->data;
- if (!strcmp(app->name, client->name)) {
+ if (
+ (app->name && && !app->class && !strcmp(app->name, client->name))
+ || (app->class && !app->name && !strcmp(app->class, client->class))
+ || (app->class && app->name && !strcmp(app->class, client->class)
+ && !strcmp(app->name, client->name))
+ ) {
ob_debug("Window matching: %s\n", app->name);
/* Match if no role was specified in the per app setting, or if the string
* matches the beginning of the role, since apps like to set the role to