mirror of
https://github.com/vale981/spectrwm
synced 2025-03-05 09:51:38 -05:00
OMG fix a 100 year old ryan bug that has been pissing me off since regions
got introduced and i pretended it was a quirk.
This commit is contained in:
parent
840c2ac2b6
commit
3b1be00edc
1 changed files with 14 additions and 6 deletions
20
scrotwm.c
20
scrotwm.c
|
@ -1508,6 +1508,10 @@ stack_floater(struct ws_win *win, struct swm_region *r)
|
|||
wc.y = (HEIGHT(r) - win->g.h) / 2;
|
||||
}
|
||||
|
||||
/* adjust for region */
|
||||
wc.x += r->g.x;
|
||||
wc.y += r->g.y;
|
||||
|
||||
DNPRINTF(SWM_D_STACK, "stack_floater: win %lu x %d y %d w %d h %d\n",
|
||||
win->id, wc.x, wc.y, wc.width, wc.height);
|
||||
|
||||
|
@ -3257,14 +3261,18 @@ manage_window(Window id)
|
|||
ws = r->ws;
|
||||
/* this should launch transients in the same ws as parent */
|
||||
/* XXX doesn't work for intel xrandr */
|
||||
if (id && trans) {
|
||||
if ((ww = find_window(trans)) != NULL) {
|
||||
ws = ww->ws;
|
||||
r = ws->r;
|
||||
}
|
||||
}
|
||||
if (id && trans)
|
||||
if ((ww = find_window(trans)) != NULL)
|
||||
if (ws->r) {
|
||||
ws = ww->ws;
|
||||
r = ww->ws->r;
|
||||
}
|
||||
}
|
||||
|
||||
/* 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;
|
||||
|
|
Loading…
Add table
Reference in a new issue