diff --git a/cmd/wmii/view.c b/cmd/wmii/view.c index 03ab8203..5bf43c5d 100644 --- a/cmd/wmii/view.c +++ b/cmd/wmii/view.c @@ -453,7 +453,7 @@ view_detach(Frame *f) { event("ViewDetach %s %#C\n", v->name, c); view_update(v); - if(view != selview && empty_p(v)) + if(v != selview && empty_p(v)) view_destroy(v); }