summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2010-12-07 20:34:25 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2010-12-07 20:34:25 +0800
commitaecc2baa84c4c16e39569c6789306081246aaa67 (patch)
tree205c185e4dd08504bc948cb4a18fd14999ff0a2b
parent70b7c38a50f4cea8645adf9023458a3e1d2c1cc1 (diff)
downloadcompiz-with-glib-mainloop-aecc2baa84c4c16e39569c6789306081246aaa67.tar.gz
compiz-with-glib-mainloop-aecc2baa84c4c16e39569c6789306081246aaa67.tar.bz2
place: Fix typo (off by one error)
Forward port 4832c514b0c460febc90720a61c11d6a0f64ec84 to master
-rw-r--r--plugins/place/src/place.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/place/src/place.cpp b/plugins/place/src/place.cpp
index c2917b9..680893c 100644
--- a/plugins/place/src/place.cpp
+++ b/plugins/place/src/place.cpp
@@ -467,9 +467,9 @@ PlaceWindow::place (CompPoint &pos)
int x, y;
viewport.setX (MAX (MIN (viewport.x (),
- screen->vpSize ().width ()), 0));
+ screen->vpSize ().width () - 1), 0));
viewport.setY (MAX (MIN (viewport.y (),
- screen->vpSize ().height ()), 0));
+ screen->vpSize ().height () - 1), 0));
x = pos.x () % screen->width ();
if (x < 0)