commit 67512fa9e73b2cd9401904eed7373e67d5968be5
parent c53d95d0903f019c89b2c92d0f37bd1112757509
Author: Kris Maglione <kris@suckless.org>
Date: Sat, 24 Oct 2009 01:50:52 -0400
Float clients to the same Xinerama screen as their column. Closes issue #145.
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/cmd/wmii/float.c b/cmd/wmii/float.c
@@ -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);
diff --git a/cmd/wmii/frame.c b/cmd/wmii/frame.c
@@ -36,6 +36,7 @@ frame_create(Client *c, View *v) {
}
f->collapsed = false;
f->oldarea = -1;
+ f->oldscreen = -1;
return f;
}