From 8af51d8a1be9c3cb9d89d1d8378de72f42599760 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Fri, 9 Jun 2006 12:47:48 +0000 Subject: add role matching to per app settings and fix a small memleak in the code that frees the per app list --- openbox/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbox/client.c') 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; -- cgit v1.2.3