It's perfectly legal for us to start managing a window in a workspace
that's not active - for example, when we start a process and change
workspaces before the window is created, or when scrotwm restarts.
}
}
- /* shouldn't happen but does... */
- if (ws->r == NULL)
- ws->r = r; /* use found r since it isn't filled in */
-
/* set up the window layout */
win->id = id;
win->ws = ws;
mask |= CWY;
}
if (win->g.w + win->g.x > WIDTH(r)) {
- win->g.x = wc.x = WIDTH(win->ws->r) - win->g.w - 2;
+ win->g.x = wc.x = WIDTH(r) - win->g.w - 2;
mask |= CWX;
}
border_me = 1;