summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Gurgel Pinho <eduardo@mad4.Chagas>2009-03-10 19:26:48 -0300
committerEduardo Gurgel Pinho <eduardo@mad4.Chagas>2009-03-10 19:26:48 -0300
commit3d5c6b104d1ce99a29a4d0aea336a726b59260c8 (patch)
tree5d77113191ccd34b0ece4d4c9ab628e8dfba200c
parent28163b96bfa646dc81967044790f4a43e740fe32 (diff)
downloadautoresize-3d5c6b104d1ce99a29a4d0aea336a726b59260c8.tar.gz
autoresize-3d5c6b104d1ce99a29a4d0aea336a726b59260c8.tar.bz2
Track core changes
-rw-r--r--snap.cpp24
1 files changed, 16 insertions, 8 deletions
diff --git a/snap.cpp b/snap.cpp
index 5252139..a3e83f3 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,
@@ -283,14 +287,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);