diff options
author | Mavridis Philippe <[email protected]> | 2023-12-05 15:53:55 +0200 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-03-29 11:23:31 +0900 |
commit | 7482fe22830ce974a15e3a132dcc3ac6cee1a65f (patch) | |
tree | 42ac4d2e0a6cd7546ee8354eab07f47056437c0a /twin/geometry.cpp | |
parent | 8d642b33a1c5b6b2d0d94e395df83704b3610b55 (diff) | |
download | tdebase-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.cpp | 12 |
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 |