summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-06-16 23:32:47 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-06-16 23:32:47 +0800
commit20eadb9be94e1624022b5e4a99ca1e5adb3f88a7 (patch)
tree432ad7db0b07bbc4ae3d8b6d48d6abb5f3ff1f9e /src
parent291627c9602d0c6e33cc29d75bcab9633863a631 (diff)
downloadmobilebling-20eadb9be94e1624022b5e4a99ca1e5adb3f88a7.tar.gz
mobilebling-20eadb9be94e1624022b5e4a99ca1e5adb3f88a7.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;