summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/window.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp
index 6b36ebe2..70b6dae8 100644
--- a/src/gui/widgets/window.cpp
+++ b/src/gui/widgets/window.cpp
@@ -682,14 +682,14 @@ int Window::getResizeHandles(gcn::MouseEvent &event)
const int y = event.getY();
const int p = getPadding();
- const bool inPadding = (x < p || x > getWidth() - p) ||
- (y < p || y > getHeight() - p);
+ const bool inPadding = (x < p || x >= getWidth() - p) ||
+ (y < p || y >= getHeight() - p);
if (inPadding && event.getSource() == this)
{
- resizeHandles |= (x > getWidth() - resizeBorderWidth) ? RIGHT :
+ resizeHandles |= (x >= getWidth() - resizeBorderWidth) ? RIGHT :
(x < resizeBorderWidth) ? LEFT : 0;
- resizeHandles |= (y > getHeight() - resizeBorderWidth) ? BOTTOM :
+ resizeHandles |= (y >= getHeight() - resizeBorderWidth) ? BOTTOM :
(y < resizeBorderWidth) ? TOP : 0;
}