From ec2c2f6337d1418f509b665bf74d5881ba73972a Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Tue, 10 Aug 2010 03:38:53 +0200 Subject: [PATCH] Client: Fixes details in client_set_rule --- src/client.c | 8 ++++++++ wmfsrc.in | 5 ++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/client.c b/src/client.c index 36c0f0a..0a5c04d 100644 --- a/src/client.c +++ b/src/client.c @@ -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); } } diff --git a/wmfsrc.in b/wmfsrc.in index afe0cb5..daf22d4 100644 --- a/wmfsrc.in +++ b/wmfsrc.in @@ -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