summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-02-02 14:07:31 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-02-02 14:07:31 +0800
commit1e1c7131e29ddeea3daf388f5d715b8effdfef77 (patch)
tree1f7252c1f82df540a1bdcbab02edf10c7101003e /src/window.cpp
parent6de61ed64c0cc8a66ad73381674a556066060297 (diff)
downloadunity-window-decorator-1e1c7131e29ddeea3daf388f5d715b8effdfef77.tar.gz
unity-window-decorator-1e1c7131e29ddeea3daf388f5d715b8effdfef77.tar.bz2
Fix window region calculation for windows that have border width set.
Forward port of 79a275b240a98d9f64c8dd1e799e5d469ec8f204 to master
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 6eeb757..dbc8fb9 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -864,8 +864,8 @@ PrivateWindow::updateRegion ()
{
r.x = -priv->attrib.border_width;
r.y = -priv->attrib.border_width;
- r.width = priv->width;
- r.height = priv->height;
+ r.width = priv->width + priv->attrib.border_width;
+ r.height = priv->height + priv->attrib.border_width;
rects = &r;
n = 1;