summaryrefslogtreecommitdiffstats
path: root/twin/geometry.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2023-07-09 17:01:04 +0300
committerMavridis Philippe <[email protected]>2023-07-10 12:10:54 +0300
commitbb44b9863c49c05e5d2d761e65981853ed42adcd (patch)
tree14222a2223926bd98b908ca8286c7dcb2289fca3 /twin/geometry.cpp
parent84c43976446c4694049cc6439e961b718bc84fca (diff)
downloadtdebase-bb44b9863c49c05e5d2d761e65981853ed42adcd.tar.gz
tdebase-bb44b9863c49c05e5d2d761e65981853ed42adcd.zip
twin: Minor code cleanup and refactoring
Refactoring concerns active border code. Signed-off-by: Mavridis Philippe <[email protected]> (cherry picked from commit 0339423ced3db53f9155c6c174d9508517358f9c)
Diffstat (limited to 'twin/geometry.cpp')
-rw-r--r--twin/geometry.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/twin/geometry.cpp b/twin/geometry.cpp
index fc5f919cf..4bb6714ae 100644
--- a/twin/geometry.cpp
+++ b/twin/geometry.cpp
@@ -1899,7 +1899,7 @@ void Client::changeMaximize( bool vertical, bool horizontal, bool adjust )
if( horizontal )
max_mode = MaximizeMode( max_mode ^ MaximizeHorizontal );
}
-
+
max_mode = rules()->checkMaximize( max_mode );
if( !adjust && max_mode == old_mode )
return;
@@ -1948,9 +1948,9 @@ void Client::changeMaximize( bool vertical, bool horizontal, bool adjust )
{
max_mode = MaximizeHorizontal;
maxmode_restore = MaximizeRestore;
- }
+ }
}
-
+
switch (max_mode)
{
@@ -2476,7 +2476,7 @@ void Client::checkUnrestrictedMoveResize()
return;
TQRect desktopArea = workspace()->clientArea( WorkArea, moveResizeGeom.center(), desktop());
int left_marge, right_marge, top_marge, bottom_marge, titlebar_marge;
- // restricted move/resize - keep at least part of the titlebar always visible
+ // restricted move/resize - keep at least part of the titlebar always visible
// how much must remain visible when moved away in that direction
left_marge = KMIN( 100 + border_right, moveResizeGeom.width());
right_marge = KMIN( 100 + border_left, moveResizeGeom.width());
@@ -2552,7 +2552,7 @@ void Client::handleMoveResize( int x, int y, int x_root, int y_root )
int left_marge, right_marge, top_marge, bottom_marge, titlebar_marge;
if( unrestrictedMoveResize ) // unrestricted, just don't let it go out completely
left_marge = right_marge = top_marge = bottom_marge = titlebar_marge = 5;
- else // restricted move/resize - keep at least part of the titlebar always visible
+ else // restricted move/resize - keep at least part of the titlebar always visible
{
// how much must remain visible when moved away in that direction
left_marge = KMIN( 100 + border_right, moveResizeGeom.width());