Client: Fixes details in client_set_rule

This commit is contained in:
Martin Duquesnoy 2010-08-10 03:38:53 +02:00
parent 5d7f4a2382
commit ec2c2f6337
2 changed files with 10 additions and 3 deletions

View File

@ -1068,6 +1068,14 @@ client_set_rules(Client *c)
client_maximize(c);
c->flags |= MaxFlag;
}
if(c->tag != seltag[selscreen])
{
tags[c->screen][c->tag].request_update = True;
client_focus(NULL);
}
tags[c->screen][c->tag].layout.func(c->screen);
}
}

View File

@ -200,9 +200,8 @@
[rules]
# Example of rule for Mplayer
[rule]
class = "MPlayer" # First part of WM_CLASS
instance = "xv" # Seconf part of WM_CLASS, not needed if first part is correct
instance = "xv" # First part of WM_CLASS
class = "MPlayer" # Seconf part of WM_CLASS, not needed if first part is correct
# role = "" # WM_WINDOW_ROLE
screen = 0 # Screen to use
tag = 2 # Tag number of apps