mirror of
https://github.com/0intro/wmii
synced 2024-11-22 13:52:17 +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