]> Dogcows Code - chaz/openbox/blobdiff - openbox/client.c
let you match per-app settings based on the window type
[chaz/openbox] / openbox / client.c
index 43a2f551f8252d2f5aec58faa2570690ecd4527c..371eb08746d4b6b172e3353294d2646c950fb4db 100644 (file)
@@ -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);
This page took 0.020342 seconds and 4 git commands to generate.