summaryrefslogtreecommitdiffstats
path: root/twin/geometry.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2023-12-05 15:53:55 +0200
committerMichele Calgaro <[email protected]>2024-03-29 11:25:12 +0900
commit62ce84146e5a9505e59121b9ab65f9e32704f16f (patch)
treed1ce0fb0d901a85c70bd36e703c0ed9c5b40b842 /twin/geometry.cpp
parent8d168e4985f1e1276ba554bc0e046153ead1219e (diff)
downloadtdebase-62ce84146e5a9505e59121b9ab65f9e32704f16f.tar.gz
tdebase-62ce84146e5a9505e59121b9ab65f9e32704f16f.zip
TWin: add tileHorizontally(), tileVertically(), tileGrid() DCOP calls
Signed-off-by: Mavridis Philippe <[email protected]> (cherry picked from commit 7482fe22830ce974a15e3a132dcc3ac6cee1a65f)
Diffstat (limited to 'twin/geometry.cpp')
-rw-r--r--twin/geometry.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/twin/geometry.cpp b/twin/geometry.cpp
index f729c702c..34117da20 100644
--- a/twin/geometry.cpp
+++ b/twin/geometry.cpp
@@ -2828,4 +2828,16 @@ TQRect Client::activeBorderMaximizeGeometry()
return ret;
}
+void Client::tile(ActiveBorder border) {
+ if (!isResizable()) return;
+ activeTiled = true;
+ setActiveBorderMode(ActiveTilingMode);
+ setActiveBorder(border);
+ TQRect geo = activeBorderMaximizeGeometry();
+ if (geo.isValid() && !geo.isEmpty()) {
+ setGeometry(geo);
+ }
+ workspace()->raiseClient(this);
+}
+
} // namespace