From: Reginald Kennedy Date: Mon, 20 Aug 2012 13:17:45 +0000 (+0800) Subject: Unmap after map in switchws. X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=43af7f1229fa4a5fbbc749733a08a5fb4ebfec24;p=spectrwm.git Unmap after map in switchws. --- diff --git a/spectrwm.c b/spectrwm.c index 06b73c0..75c7a6c 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -2862,8 +2862,15 @@ switchws(struct swm_region *r, union arg *args) this_r->ws = new_ws; new_ws->r = this_r; + unmap_window(old_ws->focus); + stack(); + /* unmap old windows */ + if (unmap_old) + TAILQ_FOREACH(win, &old_ws->winlist, entry) + unmap_window(win); + new_ws->focus = get_region_focus(new_ws->r); /* unmap old windows */