diff options
author | Sam Spilsbury <smspillaz@gmail.com> | 2010-02-02 14:07:31 +0800 |
---|---|---|
committer | Sam Spilsbury <smspillaz@gmail.com> | 2010-02-02 14:07:31 +0800 |
commit | 1e1c7131e29ddeea3daf388f5d715b8effdfef77 (patch) | |
tree | 1f7252c1f82df540a1bdcbab02edf10c7101003e /src | |
parent | 6de61ed64c0cc8a66ad73381674a556066060297 (diff) | |
download | zcomp-1e1c7131e29ddeea3daf388f5d715b8effdfef77.tar.gz zcomp-1e1c7131e29ddeea3daf388f5d715b8effdfef77.tar.bz2 |
Fix window region calculation for windows that have border width set.
Forward port of 79a275b240a98d9f64c8dd1e799e5d469ec8f204 to master
Diffstat (limited to 'src')
-rw-r--r-- | src/window.cpp | 4 |
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; |