changeset: 2794:8ee765fe188a
tag: tip
user: Kris Maglione <kris_AT_suckless.org>
date: Thu Sep 15 13:29:41 2011 -0400
files: cmd/wmii/float.c
description:
Take into account bar and struts when placing floats. Closes issue #283.
diff -r 185f257df4ce -r 8ee765fe188a cmd/wmii/float.c
--- a/cmd/wmii/float.c Thu Sep 15 13:22:17 2011 -0400
+++ b/cmd/wmii/float.c Thu Sep 15 13:29:41 2011 -0400
@@ -162,12 +162,14 @@
Vector_rect *vp;
Rectangle r;
Point dim, p;
+ Area *a, *sel;
Client *c;
Frame *ff;
- Area *a, *sel;
+ View *v;
long area, l;
int i, s;
+ v = f->view;
a = f->area;
c = f->client;
@@ -212,7 +214,11 @@
s = sel->screen;
}
- r = s == -1 ? a->r : screens[s]->r;
+ if (s == -1)
+ r = a->r;
+ else
+ r = v->r[s];
+
vp = unique_rects(&vec, r);
area = LONG_MAX;
Received on Thu Sep 15 2011 - 19:29:44 CEST
This archive was generated by hypermail 2.2.0 : Thu Sep 15 2011 - 19:36:05 CEST