summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Würl <trinity@dwrl.de>2025-02-22 23:29:00 +0100
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-02-26 13:27:06 +0900
commit95f8b4cea5e454f2c495dcf3c942a0e474121c64 (patch)
treec075e2006440fb970182f8146125b9548c748aef
parentf95f8d14633293ca0e9159e7d774c543b2aa5a30 (diff)
downloadtwin-style-dekorator-95f8b4ce.tar.gz
twin-style-dekorator-95f8b4ce.zip
Use the images [left|right]BottomsFrameBg.png and [left|right]BottomFrameBg.png to determine bottom handle sizes.
Signed-off-by: Daniel Würl <trinity@dwrl.de> (cherry picked from commit df7db48266ec66f73725ddac559fa289e4b1aa11)
-rw-r--r--client/deKoratorclient.cpp8
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;