Fix focus tracking on tag viewing

The original reason for this patch was the following:
When focusing a client and hiding that by unviewing all of its tags
and then trying to set the urgent hint on that client got wrongly
ignored.

It also (slightly) changes behaviour when viewing tags: If a new client
is made visible by viewing a tag, and that client comes before the
currently focused one in the focus list, it is focused instead of the
current one.

Signed-off-by: Gregor Best <gbe@ring0.de>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Gregor Best 2013-05-21 19:15:59 +02:00 committed by Julien Danjou
parent c8255ca554
commit f119a5869f
1 changed files with 1 additions and 0 deletions

1
tag.c
View File

@ -401,6 +401,7 @@ tag_view(Tag *tag, Bool view)
ewmh_update_net_current_desktop(screen_virttophys(tag->screen));
widget_invalidate_cache(tag->screen, WIDGET_CACHE_TAGS);
globalconf.screens[tag->screen].need_arrange = True;
client_focus(NULL, tag->screen, True);
}
/** View only this tag.