mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 08:25:59 +01:00
optimize options in dwindle
This commit is contained in:
parent
80d522cb26
commit
d53b0a6491
1 changed files with 5 additions and 3 deletions
|
@ -6,9 +6,11 @@ void SDwindleNodeData::recalcSizePosRecursive(bool force) {
|
||||||
|
|
||||||
const auto REVERSESPLITRATIO = 2.f - splitRatio;
|
const auto REVERSESPLITRATIO = 2.f - splitRatio;
|
||||||
|
|
||||||
if (g_pConfigManager->getInt("dwindle:preserve_split") == 0) {
|
static auto *const PPRESERVESPLIT = &g_pConfigManager->getConfigValuePtr("dwindle:preserve_split")->intValue;
|
||||||
const auto WIDTHMULTIPLIER = g_pConfigManager->getFloat("dwindle:split_width_multiplier");
|
static auto *const PFLMULT = &g_pConfigManager->getConfigValuePtr("dwindle:split_width_multiplier")->floatValue;
|
||||||
splitTop = size.y * WIDTHMULTIPLIER > size.x;
|
|
||||||
|
if (*PPRESERVESPLIT == 0) {
|
||||||
|
splitTop = size.y * *PFLMULT > size.x;
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto SPLITSIDE = !splitTop;
|
const auto SPLITSIDE = !splitTop;
|
||||||
|
|
Loading…
Reference in a new issue