mirror of
https://github.com/0intro/wmii
synced 2024-11-25 15:20:15 +03:00
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;
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user