From 6fb68f5d9072221f4ee458518a8efbf070062b6f Mon Sep 17 00:00:00 2001 From: Michael Kaminsky Date: Tue, 26 Feb 2008 22:22:38 +0100 Subject: [PATCH] Fix segfault after viewing same tag twice and doing a tag_prev_selected. Signed-off-by: Julien Danjou --- tag.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tag.c b/tag.c index 7adb5cb1..c53621fa 100644 --- a/tag.c +++ b/tag.c @@ -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