summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/inputzoom.c
diff options
context:
space:
mode:
authoronestone <onestone@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-23 21:49:53 +0000
committeronestone <onestone@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-23 21:49:53 +0000
commit42d470f580fcbdf4427181d1b816261b655ee854 (patch)
tree639d09bbab481154f19d30834b3909d591098c03 /beryl-plugins/src/inputzoom.c
parente34b1f12272fa289c18ddc5b024a62adbb7faf36 (diff)
downloadmarex-dev-42d470f580fcbdf4427181d1b816261b655ee854.tar.gz
marex-dev-42d470f580fcbdf4427181d1b816261b655ee854.tar.bz2
beryl-plugins: inputzoom: fixed clipping in multicube mode
git-svn-id: file:///beryl/trunk@3063 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/inputzoom.c')
-rw-r--r--beryl-plugins/src/inputzoom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/beryl-plugins/src/inputzoom.c b/beryl-plugins/src/inputzoom.c
index ee2919b..208971b 100644
--- a/beryl-plugins/src/inputzoom.c
+++ b/beryl-plugins/src/inputzoom.c
@@ -709,7 +709,8 @@ zoomPaintTransformedScreen(CompScreen * s, const ScreenPaintAttrib * sa,
r.rects = &r.extents;
r.numRects = 1;
- if (screenGrabExist (s, "rotate","cube",0))
+ if (screenGrabExist (s, "rotate","cube",0) &&
+ IPCS_GetIntND(IPCS_OBJECT(s),"MM_MODE",0) == 1)
{
r.extents.x1 = zs->mouseX - (zs->mouseX / zs->xscale);
r.extents.y1 = zs->mouseY - (zs->mouseY / zs->yscale);