summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp
index c77789e..e5bbad4 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -2887,7 +2887,7 @@ CompWindow::moveResize (XWindowChanges *xwc,
else
{
min -= screen->vp ().x () * screen->width ();
- max += (screen->vpSize ().width () - screen->vp ().x () - 2) *
+ max += (screen->vpSize ().width () - screen->vp ().x () - 1) *
screen->width ();
if (xwc->x < min)