diff --git a/cmd/wm/tag.c b/cmd/wm/tag.c index e90f5504..dc3bf4f6 100644 --- a/cmd/wm/tag.c +++ b/cmd/wm/tag.c @@ -76,14 +76,15 @@ update_tags() organize_client(view[sel], client[i]); } - if(!hasclient(view[sel])) { + if(nview && !hasclient(view[sel])) { destroy_view(view[sel]); if(nview) focus_view(view[sel]); else update_bar_tags(); } - else if(!nview && ntag) + + if(!nview && ntag) select_view(tag[0]); else update_bar_tags();