diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2012-09-23 16:59:24 +0200 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2012-09-23 16:59:24 +0200 |
| commit | 165665496ae1262db4c66e462d327f0ab5690ee7 (patch) | |
| tree | 7278398edb4441b74e53abb0692a42309c38a78e /plugins/unityshell | |
| parent | a3267825e4168603d893027968b1e6b46119bae0 (diff) | |
UnityWindow: GetScaledGeometry, fix the x/y positioning, so that the decoration won't look wider
(bzr r2713.1.5)
Diffstat (limited to 'plugins/unityshell')
| -rw-r--r-- | plugins/unityshell/src/unityshell.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp index 4485f4d6c..4f8008a8d 100644 --- a/plugins/unityshell/src/unityshell.cpp +++ b/plugins/unityshell/src/unityshell.cpp @@ -3705,8 +3705,8 @@ nux::Geometry UnityWindow::GetScaledGeometry() const unsigned width = std::floor(border_rect.width() * pos.scale); const unsigned height = std::floor(border_rect.height() * pos.scale); - int x = pos.x() + border_rect.x(); - const int y = pos.y() + border_rect.y() + deco_ext.top - std::floor(deco_ext.top * pos.scale) - 1; + const int x = pos.x() + window->x() - std::floor(deco_ext.left * pos.scale); + const int y = pos.y() + window->y() - std::floor(deco_ext.top * pos.scale); return nux::Geometry(x, y, width, height); } |
