From f87b67394a022ddea7cae2be90316f6917cbfc31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 3 Jan 2003 12:53:26 +0000 Subject: [PATCH] Fix placement policies - the recent change of semantics of Client::desk broke it. svn path=/trunk/kdebase/kwin/; revision=197165 --- placement.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/placement.cpp b/placement.cpp index c49f839e4c..5dbe777f69 100644 --- a/placement.cpp +++ b/placement.cpp @@ -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?)