diff options
Diffstat (limited to 'client/deKoratorclient.cpp')
| -rw-r--r-- | client/deKoratorclient.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/deKoratorclient.cpp b/client/deKoratorclient.cpp index 7b2f375..47355c0 100644 --- a/client/deKoratorclient.cpp +++ b/client/deKoratorclient.cpp @@ -2219,9 +2219,9 @@ KDecoration::Position DeKoratorClient::mousePosition( const TQPoint & point ) co else if ( point.y() >= ( height() - BUTTOMFRAMESIZE ) ) { // inside handle - if ( point.x() <= LEFTFRAMESIZE ) + if ( point.x() <= std::max( LEFTBOTTOMFRAMEWIDTH, LEFTFRAMESIZE ) ) pos = PositionBottomLeft; - else if ( point.x() >= ( width() - RIGHTFRAMESIZE ) ) + else if ( point.x() >= ( width() - std::max( RIGHTBOTTOMFRAMEWIDTH, RIGHTFRAMESIZE ) ) ) pos = PositionBottomRight; else pos = PositionBottom; @@ -2231,7 +2231,7 @@ KDecoration::Position DeKoratorClient::mousePosition( const TQPoint & point ) co // on left frame if ( point.y() <= TITLESIZE ) pos = PositionTopLeft; - else if ( point.y() >= ( height() - BUTTOMFRAMESIZE ) ) + else if ( point.y() >= ( height() - BOTTOMLEFTFRAMEHEIGHT - BUTTOMFRAMESIZE ) ) pos = PositionBottomLeft; else pos = PositionLeft; @@ -2241,7 +2241,7 @@ KDecoration::Position DeKoratorClient::mousePosition( const TQPoint & point ) co // on right frame if ( point.y() <= TITLESIZE ) pos = PositionTopRight; - else if ( point.y() >= ( height() - BUTTOMFRAMESIZE ) ) + else if ( point.y() >= ( height() - BOTTOMRIGHTFRAMEHEIGHT - BUTTOMFRAMESIZE ) ) pos = PositionBottomRight; else pos = PositionRight; |
