summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-07-19 00:09:16 -0700
committerSam Spilsbury <smspillaz@gmail.com>2010-07-19 00:09:16 -0700
commit3cb3e313a9a24685a85d3004b845908a103259b4 (patch)
tree575e21da056acdaa2cbe7cb61bc72bf163676b56
parent35a34e20cf425377dc05115a5e0288a16e981d83 (diff)
downloadzcomp-3cb3e313a9a24685a85d3004b845908a103259b4.tar.gz
zcomp-3cb3e313a9a24685a85d3004b845908a103259b4.tar.bz2
Set scale slot geometry correctly. Fixes keyboard focus moving incorrectly
-rw-r--r--plugins/scale/src/scale.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/scale/src/scale.cpp b/plugins/scale/src/scale.cpp
index 0cfa067..2315997 100644
--- a/plugins/scale/src/scale.cpp
+++ b/plugins/scale/src/scale.cpp
@@ -588,9 +588,7 @@ PrivateScaleScreen::fillInWindows ()
cx += w->input ().left * sw->priv->slot->scale;
cy += w->input ().top * sw->priv->slot->scale;
- sw->priv->slot->setGeometry (cx - sx / 2, cy - sy / 2,
- (cx - sx / 2) + (cx + sx / 2),
- (cy - sy / 2) + (cy + sy / 2));
+ sw->priv->slot->setGeometry (cx - sx / 2, cy - sy / 2, sx, sy);
sw->priv->slot->filled = true;