try not to place windows behind always on top windows in smart

placement code. Fix found by Cristian Tibirna

svn path=/trunk/kdebase/kwin/; revision=75050
This commit is contained in:
Dirk Mueller 2000-12-17 03:23:34 +00:00
parent c1eac4d5d0
commit bd3140b6b7

View file

@ -1337,6 +1337,9 @@ void Workspace::smartPlacement(Client* c){
(cyt < yb) && (cyb > yt)) {
xl = QMAX(cxl, xl); xr = QMIN(cxr, xr);
yt = QMAX(cyt, yt); yb = QMIN(cyb, yb);
if((*l)->staysOnTop())
overlap += 16 * (xr - xl) * (yb - yt);
else
overlap += (xr - xl) * (yb - yt);
}
}