From 502a5e829954ffa1e2ef48d6247b9939f1818a58 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 28 Oct 2012 13:47:54 +0300 Subject: Fix stick button placment. --- src/gui/widgets/window.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp index 01d2bb923..e4a279e6c 100644 --- a/src/gui/widgets/window.cpp +++ b/src/gui/widgets/window.cpp @@ -422,9 +422,10 @@ void Window::widgetResized(const gcn::Event &event A_UNUSED) if (button) { int x = mDimension.width - button->getWidth() - - getOption("stickySpacing"); + - getOption("stickySpacing") - closePadding; + if (showClose) - x -= mSkin->getCloseImage(false)->getWidth() + closePadding; + x -= mSkin->getCloseImage(false)->getWidth(); mStickyRect.x = x; mStickyRect.y = getOption("stickyPadding"); -- cgit v1.2.3-70-g09d2