From 2daabfa0e981d8d2e33c068c9cc84ecb3cf2daa0 Mon Sep 17 00:00:00 2001 From: Julian Schuler <31921487+julianschuler@users.noreply.github.com> Date: Sat, 17 Dec 2022 23:37:44 +0100 Subject: Add 'exact' option for 'splitratio' (#1245) * Simplify getPlusMinusKeywordResult() * Add an 'exact' option for 'splitratio' --- src/layout/IHyprLayout.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/layout/IHyprLayout.hpp') diff --git a/src/layout/IHyprLayout.hpp b/src/layout/IHyprLayout.hpp index a58783e4..1be26d2b 100644 --- a/src/layout/IHyprLayout.hpp +++ b/src/layout/IHyprLayout.hpp @@ -115,10 +115,10 @@ interface IHyprLayout { virtual void switchWindows(CWindow*, CWindow*) = 0; /* - Called when the user requests to change the splitratio by X + Called when the user requests to change the splitratio by or to X on a window */ - virtual void alterSplitRatioBy(CWindow*, float) = 0; + virtual void alterSplitRatio(CWindow*, float, bool exact = false) = 0; /* Called when something wants the current layout's name -- cgit v1.2.3