mirror of https://github.com/0intro/wmii
Fix floating window constraings with hidden windows
This commit is contained in:
parent
60ea1e5a30
commit
621885b420
|
@ -655,6 +655,8 @@ constrain(Rectangle r) {
|
||||||
besty = nil;
|
besty = nil;
|
||||||
for(i=0; i < nscreens; i++) {
|
for(i=0; i < nscreens; i++) {
|
||||||
s = screens[i];
|
s = screens[i];
|
||||||
|
if(!s->showing)
|
||||||
|
continue;
|
||||||
isect = rect_intersection(r, s->r);
|
isect = rect_intersection(r, s->r);
|
||||||
if(!bestx || Dx(isect) > nbestx && Dy(isect) > 0) {
|
if(!bestx || Dx(isect) > nbestx && Dy(isect) > 0) {
|
||||||
bestx = s;
|
bestx = s;
|
||||||
|
|
Loading…
Reference in New Issue