Fix floating window constraings with hidden windows

This commit is contained in:
Kris Maglione 2008-10-16 17:05:56 -04:00
parent 60ea1e5a30
commit 621885b420

View File

@ -655,6 +655,8 @@ constrain(Rectangle r) {
besty = nil;
for(i=0; i < nscreens; i++) {
s = screens[i];
if(!s->showing)
continue;
isect = rect_intersection(r, s->r);
if(!bestx || Dx(isect) > nbestx && Dy(isect) > 0) {
bestx = s;