X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=scrotwm.c;h=d8f2e618e39689c23c7176cc997905c1476fe9f8;hb=2d53c59cc3444ac0223127b6861742e85fa33ce4;hp=f277ea42b003fe6b7d94ef4180e2472188e917fb;hpb=1b589d81a40060e02d9335a1e9396c83f20d749f;p=spectrwm.git diff --git a/scrotwm.c b/scrotwm.c index f277ea4..d8f2e61 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -50,7 +50,7 @@ static const char *cvstag = "$scrotwm$"; -#define SWM_VERSION "0.7" +#define SWM_VERSION "0.8" #include #include @@ -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 */