summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-06-18 09:08:34 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-06-18 09:08:34 +0800
commit40849c0a2267611782f7eb75a8f89a0fc088c098 (patch)
tree432ad7db0b07bbc4ae3d8b6d48d6abb5f3ff1f9e /src
parent291627c9602d0c6e33cc29d75bcab9633863a631 (diff)
downloadmobilebling-40849c0a2267611782f7eb75a8f89a0fc088c098.tar.gz
mobilebling-40849c0a2267611782f7eb75a8f89a0fc088c098.tar.bz2
Fix typo which caused decorations to be updated recursively because
CompWindow::resize () would always send fake resize notify events to core which would then cause CompWindow::resize () to be called again with no geometry change etc etc
Diffstat (limited to 'src')
-rw-r--r--src/window.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 87e2316..2b4ca27 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -1462,8 +1462,8 @@ CompWindow::resize (int x,
bool
CompWindow::resize (CompWindow::Geometry gm)
{
- if (priv->geometry.x () != gm.width () ||
- priv->geometry.y () != gm.height () ||
+ if (priv->geometry.width () != gm.width () ||
+ priv->geometry.height () != gm.height () ||
priv->geometry.border () != gm.border ())
{
int pw, ph;