diff options
Diffstat (limited to 'src/gui/widgets/window.cpp')
-rw-r--r-- | src/gui/widgets/window.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp index 1b008a087..22daa5dc9 100644 --- a/src/gui/widgets/window.cpp +++ b/src/gui/widgets/window.cpp @@ -774,9 +774,8 @@ int Window::getResizeHandles(gcn::MouseEvent &event) int resizeHandles = 0; const unsigned y = event.getY(); - if (mGrip && (y > static_cast<int>(mTitleBarHeight) - || (y < static_cast<int>(getPadding()) && mTitleBarHeight - > getPadding()))) + if (mGrip && (y > mTitleBarHeight || (y < getPadding() + && mTitleBarHeight > getPadding()))) { const unsigned x = event.getX(); |