Fix segfault after viewing same tag twice and doing a tag_prev_selected.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Michael Kaminsky 2008-02-26 22:22:38 +01:00 committed by Julien Danjou
parent 7a1208ad8a
commit 6fb68f5d90

4
tag.c
View file

@ -287,9 +287,7 @@ tag_view_only(Tag *target)
if(!target) return;
for(tag = globalconf.screens[target->screen].tags; tag; tag = tag->next)
tag_view(tag, False);
tag_view(target, True);
tag_view(tag, tag == target);
}
void