summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2009-03-11 07:46:08 +0100
committerDanny Baumann <dannybaumann@web.de>2009-03-11 07:46:08 +0100
commitb1b9a88d68b3a11320b88c0a43d4940066a1ebe2 (patch)
tree619547e79ac771156a32e45745e16d1c186f6ee8
parenta6f0ee4377c0a9914afb868b50280768193db8b1 (diff)
parent3d5c6b104d1ce99a29a4d0aea336a726b59260c8 (diff)
downloadautoresize-b1b9a88d68b3a11320b88c0a43d4940066a1ebe2.tar.gz
autoresize-b1b9a88d68b3a11320b88c0a43d4940066a1ebe2.tar.bz2
Merge branch 'compiz++' of git+ssh://maniac@git.compiz-fusion.org/git/fusion/plugins/snap into compiz++
-rw-r--r--snap.cpp24
1 files changed, 16 insertions, 8 deletions
diff --git a/snap.cpp b/snap.cpp
index d665f3d..f727c95 100644
--- a/snap.cpp
+++ b/snap.cpp
@@ -201,14 +201,18 @@ SnapWindow::updateWindowsEdges ()
{
case LeftEdge:
case RightEdge:
- rect.setGeometry (e->position, e->position + 1,
- e->start, e->end);
+ rect.setGeometry (e->position,
+ e->start,
+ 1,
+ e->end - e->start);
break;
case TopEdge:
case BottomEdge:
default:
- rect.setGeometry (e->start, e->end,
- e->position, e->position + 1);
+ rect.setGeometry (e->start,
+ e->position,
+ e->end - e->start,
+ 1);
}
// If the edge is in the window region, remove it,
@@ -285,14 +289,18 @@ SnapWindow::updateScreenEdges ()
{
case LeftEdge:
case RightEdge:
- rect.setGeometry (e->position, e->position + 1,
- e->start, e->end);
+ rect.setGeometry (e->position,
+ e->start,
+ 1,
+ e->end - e->start);
break;
case TopEdge:
case BottomEdge:
default:
- rect.setGeometry (e->start, e->end,
- e->position, e->position + 1);
+ rect.setGeometry (e->start,
+ e->position,
+ e->end - e->start,
+ 1);
}
edgeRegion = CompRegion (rect);