From 695cf697908155981dd20a4335da63b3b0ffc770 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Tue, 10 Aug 2010 14:21:17 +0200 Subject: [PATCH] Client: Fixed wm_window_role condition in rules function --- src/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.c b/src/client.c index 751908c..4daefe7 100644 --- a/src/client.c +++ b/src/client.c @@ -1053,7 +1053,7 @@ client_set_rules(Client *c) if((xch.res_class && conf.rule[i].class && !strcmp(xch.res_class, conf.rule[i].class)) || (xch.res_name && conf.rule[i].instance && !strcmp(xch.res_name, conf.rule[i].instance))) { - if((strlen(wwrole) && conf.rule[i].role && !strcmp(wwrole, conf.rule[i].role)) || !strlen(wwrole)) + if((strlen(wwrole) && conf.rule[i].role && !strcmp(wwrole, conf.rule[i].role)) || (!strlen(wwrole) || !conf.rule[i].role)) { if(conf.rule[i].screen != -1) c->screen = conf.rule[i].screen; @@ -1070,7 +1070,7 @@ client_set_rules(Client *c) c->flags |= MaxFlag; } - if(c->tag != seltag[selscreen]) + if(c->tag != seltag[c->screen]) { tags[c->screen][c->tag].request_update = True; client_focus(NULL);