JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
*sigh* fix corner case where windows were being mapped from a different
authorMarco Peereboom <marco@conformal.com>
Tue, 3 Feb 2009 22:04:50 +0000 (22:04 +0000)
committerMarco Peereboom <marco@conformal.com>
Tue, 3 Feb 2009 22:04:50 +0000 (22:04 +0000)
workspace after alt-q.

scrotwm.c

index f277ea4..6ff67a1 100644 (file)
--- a/scrotwm.c
+++ b/scrotwm.c
@@ -2179,8 +2179,8 @@ manage_window(Window id)
 
        set_win_state(win, NormalState);
 
-       /* floaters need this */
-       if (win->floating)
+       /* floaters need to be mapped if they are in the current workspace */
+       if (win->floating && (ws->idx == r->ws->idx))
                XMapRaised(display, win->id);
 
        /* make new win focused */