diff options
-rw-r--r-- | src/gui/widgets/window.cpp | 5 |
1 files 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"); |