Fix placement policies - the recent change of semantics of Client::desk
broke it. svn path=/trunk/kdebase/kwin/; revision=197165
This commit is contained in:
parent
3bc5e13c20
commit
f87b67394a
1 changed files with 2 additions and 2 deletions
|
@ -130,7 +130,7 @@ void Placement::placeSmart(Client* c)
|
|||
long int overlap, min_overlap = 0;
|
||||
int x_optimal, y_optimal;
|
||||
int possible;
|
||||
int desktop = c->desktop() < 0 || c->isSticky() ? d->m_WorkspacePtr->currentDesktop() : c->desktop();
|
||||
int desktop = c->desktop() == 0 || c->isSticky() ? d->m_WorkspacePtr->currentDesktop() : c->desktop();
|
||||
|
||||
int cxl, cxr, cyt, cyb; //temp coords
|
||||
int xl, xr, yt, yb; //temp coords
|
||||
|
@ -280,7 +280,7 @@ void Placement::placeCascaded (Client* c, bool re_init)
|
|||
const int delta_x = 24;
|
||||
const int delta_y = 24;
|
||||
|
||||
const int dn = c->desktop() < 0 || c->isSticky() ? (d->m_WorkspacePtr->currentDesktop() - 1) : (c->desktop() - 1);
|
||||
const int dn = c->desktop() == 0 || c->isSticky() ? (d->m_WorkspacePtr->currentDesktop() - 1) : (c->desktop() - 1);
|
||||
|
||||
// get the maximum allowed windows space and desk's origin
|
||||
// (CT 20Nov1999 - is this common to all desktops?)
|
||||
|
|
Loading…
Reference in a new issue