summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-03-14 23:50:59 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-03-14 23:50:59 +0800
commit2cd3e588e979247ac2a7f32f4d065c5b9aa8b58b (patch)
tree7af6e7404e229dc52d5d553b722ec1a53ad4341c
parentad076c047f54b00f99d9a5f904e6d44e6be8885f (diff)
downloadtile-2cd3e588e979247ac2a7f32f4d065c5b9aa8b58b.tar.gz
tile-2cd3e588e979247ac2a7f32f4d065c5b9aa8b58b.tar.bz2
Update for new core API
-rw-r--r--src/tile.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/tile.cpp b/src/tile.cpp
index 6cdb16d..e657352 100644
--- a/src/tile.cpp
+++ b/src/tile.cpp
@@ -255,17 +255,17 @@ TileScreen::glPaintOutput (const GLScreenPaintAttrib &attrib,
Coordinate = start + (target - start)/interval * elapsedTime
Draw outline */
- x = tw->tiler->previous.x () - w->input ().left +
+ x = tw->tiler->previous.x () - w->border ().left +
(((float)(w->x () - tw->previous.x ())) *
ts->msResizing / animationDuration);
- y = tw->previous.y () - w->input ().top +
+ y = tw->previous.y () - w->border ().top +
(((float)(w->y () - tw->previous.y ())) *
ts->msResizing / animationDuration);
- width = tw->previous.width () + w->input ().left + w->input ().right +
+ width = tw->previous.width () + w->border ().left + w->border ().right +
(((float)(w->width () - tw->previous.width ())) *
ts->msResizing / animationDuration);
height = tw->previous.height () +
- w->input ().top + w->input ().bottom +
+ w->border ().top + w->border ().bottom +
(((float)(w->height () - tw->previous.height ())) *
ts->msResizing / animationDuration);
@@ -899,14 +899,14 @@ TileScreen::chooseTileModeAndTile ()
/* Set the largest border size as some windows may be maximized */
if (tw->is ())
{
- if (w->input ().left > border.left)
- border.left = w->input ().left;
- if (w->input ().right > border.right)
- border.right = w->input ().right;
- if (w->input ().top > border.top)
- border.top = w->input ().top;
- if (w->input ().bottom > border.bottom)
- border.bottom = w->input ().bottom;
+ if (w->border ().left > border.left)
+ border.left = w->border ().left;
+ if (w->border ().right > border.right)
+ border.right = w->border ().right;
+ if (w->border ().top > border.top)
+ border.top = w->border ().top;
+ if (w->border ().bottom > border.bottom)
+ border.bottom = w->border ().bottom;
if (!tw->tiler && type != Restore)
{