summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2009-03-11 07:39:45 +0100
committerDanny Baumann <dannybaumann@web.de>2009-03-11 07:39:45 +0100
commita6f0ee4377c0a9914afb868b50280768193db8b1 (patch)
tree300e659bdf260c18911150d81a7294761e2dc49b
parent28163b96bfa646dc81967044790f4a43e740fe32 (diff)
downloadautoresize-a6f0ee4377c0a9914afb868b50280768193db8b1.tar.gz
autoresize-a6f0ee4377c0a9914afb868b50280768193db8b1.tar.bz2
Track core changes.
-rw-r--r--snap.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/snap.cpp b/snap.cpp
index 5252139..d665f3d 100644
--- a/snap.cpp
+++ b/snap.cpp
@@ -252,12 +252,14 @@ SnapWindow::updateScreenEdges ()
foreach (CompOutput output, screen->outputDevs ())
{
- XRectangle area = output.workArea ();
- addEdge (0, area.y, area.x, area.x + area.width - 1, BottomEdge, true);
- addEdge (0, area.y + area.height, area.x, area.x + area.width - 1,
+ const CompRect& area = output.workArea ();
+ addEdge (0, area.top (), area.left (), area.right () - 1,
+ BottomEdge, true);
+ addEdge (0, area.bottom (), area.left (), area.right () - 1,
TopEdge, true);
- addEdge (0, area.x, area.y, area.y + area.height - 1, RightEdge, true);
- addEdge (0, area.x + area.width, area.y, area.y + area.height - 1,
+ addEdge (0, area.left (), area.top (), area.bottom () - 1,
+ RightEdge, true);
+ addEdge (0, area.right (), area.top (), area.bottom () - 1,
LeftEdge, true);
}