]> code.delx.au - spectrwm/commitdiff
Unmap after map in switchws.
authorReginald Kennedy <rk@rejii.com>
Mon, 20 Aug 2012 13:17:45 +0000 (21:17 +0800)
committerReginald Kennedy <rk@rejii.com>
Mon, 20 Aug 2012 18:37:34 +0000 (02:37 +0800)
spectrwm.c

index 06b73c0b9a1ef2b9f6e5a3a6d35c215a62b6a09c..75c7a6cc7ddbe78b597bf9c71ceac86a3e2df770 100644 (file)
@@ -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 */