summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2010-02-10 20:31:44 +0100
committerDennis Kasprzyk <onestone@compiz-fusion.org>2010-02-10 20:31:44 +0100
commit89ff99d6e01c495defd02a3eef0c2b475db67700 (patch)
tree1aff5f3b77e16cdbd4aa520a25f26f94357a6f7b /src/window.cpp
parent2ad1ddec8401525ec077c164fee081d8db8d4263 (diff)
downloadunity-window-decorator-89ff99d6e01c495defd02a3eef0c2b475db67700.tar.gz
unity-window-decorator-89ff99d6e01c495defd02a3eef0c2b475db67700.tar.bz2
Window position doesn't have to be synced to update frame window region.
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 57749cf..e5a6ca7 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -5333,7 +5333,8 @@ CompWindow::updateFrameRegion ()
CompRect r;
int x, y;
- if (priv->frame && priv->serverGeometry == priv->geometry)
+ if (priv->frame && priv->serverGeometry.width () == priv->geometry.width () &&
+ priv->serverGeometry.height () == priv->geometry.height ())
{
priv->frameRegion = CompRegion ();
@@ -5353,8 +5354,8 @@ CompWindow::updateFrameRegion ()
priv->frameRegion &= CompRegion (r);
}
- x = priv->serverGeometry.x () - priv->input.left;
- y = priv->serverGeometry.y () - priv->input.top;
+ x = priv->geometry.x () - priv->input.left;
+ y = priv->geometry.y () - priv->input.top;
XShapeCombineRegion (screen->dpy (), priv->frame,