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:
parent
c8255ca554
commit
f119a5869f
1
tag.c
1
tag.c
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue