summaryrefslogtreecommitdiff
path: root/src/layout/algorithm/ModeAlgorithm.hpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2026-03-02 21:10:21 +0000
committerGitHub <noreply@github.com>2026-03-02 21:10:21 +0000
commit75a815fbf28b73f3b9f9b9246ed3eb1fbd9b2a58 (patch)
tree528fa1fdea51f905010034a4228ad74a3c117551 /src/layout/algorithm/ModeAlgorithm.hpp
parent3b7401b065d78582fe67591f37d36021e94d2f0a (diff)
algo/dwindle: use focal point correctly for x-ws moves (#13514)
Diffstat (limited to 'src/layout/algorithm/ModeAlgorithm.hpp')
-rw-r--r--src/layout/algorithm/ModeAlgorithm.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/layout/algorithm/ModeAlgorithm.hpp b/src/layout/algorithm/ModeAlgorithm.hpp
index 90d7ce58..0fedc3da 100644
--- a/src/layout/algorithm/ModeAlgorithm.hpp
+++ b/src/layout/algorithm/ModeAlgorithm.hpp
@@ -44,6 +44,9 @@ namespace Layout {
// optional: predict new window's size
virtual std::optional<Vector2D> predictSizeForNewTarget();
+ // Impl'd here: focal point for dir
+ virtual std::optional<Vector2D> focalPointForDir(SP<ITarget> t, Math::eDirection dir);
+
protected:
IModeAlgorithm() = default;