summaryrefslogtreecommitdiffstats
path: root/twin/geometry.cpp
diff options
context:
space:
mode:
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