diff options
| author | Mikael Magnusson <mikachu@comhem.se> | 2006-06-09 12:47:48 +0000 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2006-06-09 12:47:48 +0000 |
| commit | 8af51d8a1be9c3cb9d89d1d8378de72f42599760 (patch) | |
| tree | f2fc8feaffe44238fa9db44632c7a15eab7b5a7a /openbox/client.c | |
| parent | 4a42260849ab284cc6a257c3d0cb74b4633a39de (diff) | |
add role matching to per app settings and fix a small memleak in the code that frees the per app list
Diffstat (limited to 'openbox/client.c')
| -rw-r--r-- | openbox/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/client.c b/openbox/client.c index a912acb4..cfcc7da2 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -215,8 +215,8 @@ static ObAppSettings *get_settings(ObClient *client) if (!strcmp(app->name, client->name)) { ob_debug("Window matching: %s\n", app->name); - - return app; + if (!app->role || !strcmp(app->role, client->role)) + return app; } a = a->next; |
