mirror of https://github.com/0intro/wmii
Float clients to the same Xinerama screen as their column. Closes issue #145.
This commit is contained in:
parent
c53d95d090
commit
67512fa9e7
|
@ -198,7 +198,9 @@ float_placeframe(Frame *f) {
|
|||
*/
|
||||
s = -1;
|
||||
ff = client_groupframe(c, f->view);
|
||||
if (ff)
|
||||
if (f->screen >= 0)
|
||||
s = f->screen;
|
||||
else if (ff)
|
||||
s = ownerscreen(ff->r);
|
||||
else if (selclient())
|
||||
s = ownerscreen(selclient()->sel->r);
|
||||
|
|
|
@ -36,6 +36,7 @@ frame_create(Client *c, View *v) {
|
|||
}
|
||||
f->collapsed = false;
|
||||
f->oldarea = -1;
|
||||
f->oldscreen = -1;
|
||||
|
||||
return f;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue