From 43af7f1229fa4a5fbbc749733a08a5fb4ebfec24 Mon Sep 17 00:00:00 2001 From: Reginald Kennedy Date: Mon, 20 Aug 2012 21:17:45 +0800 Subject: [PATCH] Unmap after map in switchws. --- spectrwm.c | 7 +++++++ 1 file changed, 7 insertions(+) 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 */ -- 1.7.10.4