From 9e313b385bae45a88338a2dbfb008af7a9e38e7a Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Fri, 9 Aug 2024 11:34:24 +0200 Subject: Fixed resize border width on bottom and right sides --- src/gui/widgets/window.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2