summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-03-15 00:01:31 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-03-15 00:01:31 +0800
commit4b8e851d47c5d396229914b3805096e6f389b17d (patch)
tree90b438ff8ae1971b17b2d808f85384e3e015a4ff
parent26d15b37b0d297a533dd9c2fb9be244858ef8acc (diff)
downloadsession-4b8e851d47c5d396229914b3805096e6f389b17d.tar.gz
session-4b8e851d47c5d396229914b3805096e6f389b17d.tar.bz2
Update for new core API
-rw-r--r--src/session.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/session.cpp b/src/session.cpp
index bdb719c..7bdaed3 100644
--- a/src/session.cpp
+++ b/src/session.cpp
@@ -316,8 +316,8 @@ SessionScreen::addWindowNode (CompWindow *w,
y += screen->vp ().y () * screen->height ();
}
- x -= w->input ().left;
- y -= w->input ().top;
+ x -= w->border ().left;
+ y -= w->border ().top;
width = (w->saveMask () & CWWidth) ? w->saveWc ().width :
w->serverWidth ();
@@ -544,8 +544,8 @@ SessionScreen::readWindow (CompWindow *w)
xwcm = CWX | CWY;
- xwc.x = item->geometry.x () + w->input ().left;
- xwc.y = item->geometry.y () + w->input ().top;
+ xwc.x = item->geometry.x () + w->border ().left;
+ xwc.y = item->geometry.y () + w->border ().top;
if (!w->onAllViewports ())
{