summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2010-12-05 11:48:35 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2010-12-05 11:48:35 +0800
commit9211a51cf0cc98ae6fef4a33a4cc13c3f0959ac0 (patch)
tree47282e55feb3fd0b2578bca05b60e1243fe466c2 /src
parent89e6c77e31d00dd9d77c82b437d406a683953dec (diff)
parenta8ad8f2c28a95ee8ebc39d404069586942c2e292 (diff)
downloadcompiz-with-glib-mainloop-9211a51cf0cc98ae6fef4a33a4cc13c3f0959ac0.tar.gz
compiz-with-glib-mainloop-9211a51cf0cc98ae6fef4a33a4cc13c3f0959ac0.tar.bz2
Merge commit 'a8ad8f2c28a95ee8ebc39d404069586942c2e292' into glibmm-experimental
Diffstat (limited to 'src')
-rw-r--r--src/region.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/region.cpp b/src/region.cpp
index c265bdd..6649524 100644
--- a/src/region.cpp
+++ b/src/region.cpp
@@ -45,7 +45,6 @@ CompRegion::CompRegion ()
CompRegion::CompRegion (const CompRegion &c)
{
priv = new PrivateRegion ();
- priv->region = XCreateRegion ();
XUnionRegion (CompRegion ().handle (), c.priv->region, priv->region);
}
@@ -95,6 +94,8 @@ CompRegion::CompRegion (const CompPoint::vector &points)
}
priv = new PrivateRegion ();
+
+ XDestroyRegion (priv->region);
priv->region = XPolygonRegion (pts, points.size (), WindingRule);
}