summaryrefslogtreecommitdiffstats
path: root/twin/client.h
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2023-04-05 22:08:38 +0300
committerMavridis Philippe <[email protected]>2023-05-27 16:40:33 +0300
commitad771450f3fe9c170d8cef42147e444f2f7aaea8 (patch)
tree0b296fed6100dc178d1eff80e8709d6d4f27666e /twin/client.h
parent60f10cca06201053402a2af678ac59387db4b61e (diff)
downloadtdebase-ad771450f3fe9c170d8cef42147e444f2f7aaea8.tar.gz
tdebase-ad771450f3fe9c170d8cef42147e444f2f7aaea8.zip
TWin: Active borders and snap tiling
This commit is a squash of the commits of TDE/tdebase#331. In short, this backports some improvements to existing electric border functionality from KDE, adds the snap tiling (or aerosnap) feature and brings rudimentary support for active corners, which will be fully implemented in a later PR. The options dialog and the documentation has been updated to reflect these changes. Additionally, a new relevant option is introduced: an option for restoring the original size of maximized/tiled windows when the user starts dragging them. The option is set to be off by default, preserving the traditional behaviour of KDE 3.x/TDE. Last but not least, the term "electric" in relation to borders and corners is replaced by "active" for clarity to the users. Signed-off-by: Mavridis Philippe <[email protected]> (cherry picked from commit 31335a04ed9bc01fd3ede33afde40d6f3359f2e9)
Diffstat (limited to 'twin/client.h')
-rw-r--r--twin/client.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/twin/client.h b/twin/client.h
index d3c7e7b13..332501f88 100644
--- a/twin/client.h
+++ b/twin/client.h
@@ -232,6 +232,11 @@ class Client : public TQObject, public KDecorationDefines
void resizeWithChecks( int w, int h, ForceGeometry_t force = NormalGeometrySet );
void resizeWithChecks( const TQSize& s, ForceGeometry_t force = NormalGeometrySet );
void keepInArea( TQRect area, bool partial = false );
+ void setActiveBorderMode( ActiveMaximizingMode mode );
+ ActiveMaximizingMode activeBorderMode() const;
+ void setActiveBorderMaximizing(bool maximizing);
+ bool isActiveBorderMaximizing() const;
+ TQRect activeBorderMaximizeGeometry();
void growHorizontal();
void shrinkHorizontal();
@@ -600,6 +605,11 @@ class Client : public TQObject, public KDecorationDefines
bool isBMP_;
TQTimer* demandAttentionKNotifyTimer;
+ bool activeMaximizing;
+ bool activeTiled;
+ TQRect activeTiledOrigGeom;
+ ActiveMaximizingMode activeMode;
+
friend bool performTransiencyCheck();
bool minimized_before_suspend;
};