Add 'exact' option for 'splitratio' (#1245)

* Simplify getPlusMinusKeywordResult()

* Add an 'exact' option for 'splitratio'
This commit is contained in:
Julian Schuler
2022-12-17 23:37:44 +01:00
committed by GitHub
parent 0f3214714f
commit 2daabfa0e9
7 changed files with 57 additions and 78 deletions

View File

@@ -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