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:23:31 +0900
commit7482fe22830ce974a15e3a132dcc3ac6cee1a65f (patch)
tree42ac4d2e0a6cd7546ee8354eab07f47056437c0a /twin/geometry.cpp
parent8d642b33a1c5b6b2d0d94e395df83704b3610b55 (diff)
downloadtdebase-7482fe22830ce974a15e3a132dcc3ac6cee1a65f.tar.gz
tdebase-7482fe22830ce974a15e3a132dcc3ac6cee1a65f.zip
TWin: add tileHorizontally(), tileVertically(), tileGrid() DCOP calls
Signed-off-by: Mavridis Philippe <[email protected]>
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