summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@XPS-FEDORA.(none)>2010-05-03 23:13:32 +0800
committerSam Spilsbury <smspillaz@XPS-FEDORA.(none)>2010-05-03 23:13:32 +0800
commitfd0d635ef82329dabaf2266974224898befef1b3 (patch)
tree1f911f887aae29322d22fe4f098d7e4cb7ea2e59
parent4428e72ed5686db82fe324b3e1a5e48c6ead2188 (diff)
downloadzcomp-fd0d635ef82329dabaf2266974224898befef1b3.tar.gz
zcomp-fd0d635ef82329dabaf2266974224898befef1b3.tar.bz2
Use corect calculation
-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)