mirror of https://github.com/0intro/wmii
Take into account bar and struts when placing floats. Closes issue #283.
This commit is contained in:
parent
708db8d88c
commit
ff821dd113
|
@ -162,12 +162,14 @@ float_placeframe(Frame *f) {
|
|||
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 @@ float_placeframe(Frame *f) {
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue