summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/move.c
diff options
context:
space:
mode:
authormaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-06 13:25:38 +0000
committermaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-06 13:25:38 +0000
commit81f881877597f3205e44cf02f08f12f791f730b5 (patch)
tree405d631179b11b236e913254e700ca36d8ebaf66 /beryl-plugins/src/move.c
parent5f8314ecb7f64033b481524c9ba6731035a5a538 (diff)
downloadmarex-dev-81f881877597f3205e44cf02f08f12f791f730b5.tar.gz
marex-dev-81f881877597f3205e44cf02f08f12f791f730b5.tar.bz2
move plugin: fixed unwanted constraining in x direction
git-svn-id: file:///beryl/trunk@2416 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/move.c')
-rw-r--r--beryl-plugins/src/move.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/beryl-plugins/src/move.c b/beryl-plugins/src/move.c
index 08f9c23..7a21e25 100644
--- a/beryl-plugins/src/move.c
+++ b/beryl-plugins/src/move.c
@@ -290,15 +290,15 @@ moveGetYConstrainRegion (CompScreen *s)
r.extents.x1 = MINSHORT;
r.extents.y1 = 0;
- r.extents.x2 = MAXSHORT;
+ r.extents.x2 = 0;
r.extents.y2 = s->height;
XUnionRegion (&r, region, region);
- r.extents.x1 = 0;
- r.extents.x2 = s->width;
+ r.extents.x1 = s->width;
+ r.extents.x2 = MAXSHORT;
- XSubtractRegion(&r, region, region);
+ XUnionRegion(&r, region, region);
for (i = 0;i < s->nOutputDev; i++)
XUnionRegion (&s->outputDev[i].region, region, region);