summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoel Bosveld <Joel.Bosveld@gmail.com>2009-07-24 11:42:07 +0800
committerJoel Bosveld <Joel.Bosveld@gmail.com>2009-07-24 15:52:09 +0800
commitb901d34f0ac8ec4783669e5f7fa9c744edb0246d (patch)
treeea567f741dfdff7550af37750b6f34568b062144 /src
parent38f6d2a64a3aaf335a49005a2b8aae2a8b028593 (diff)
downloadzcomp-b901d34f0ac8ec4783669e5f7fa9c744edb0246d.tar.gz
zcomp-b901d34f0ac8ec4783669e5f7fa9c744edb0246d.tar.bz2
Shaped windows may have only one rectangle which is smaller than window.
Fixes bugzilla.gnome.org/show_bug.cgi?id=589472
Diffstat (limited to 'src')
-rw-r--r--src/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp
index fb8a6f2..3bea68c 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -860,7 +860,7 @@ PrivateWindow::updateRegion ()
ShapeBounding, &n, &order);
}
- if (n < 2)
+ if (n < 1)
{
r.x = -priv->attrib.border_width;
r.y = -priv->attrib.border_width;