mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-16 03:03:40 +01:00
fix: changed INT to FLOAT
This commit is contained in:
parent
e5614bbeab
commit
a727d1bc19
2 changed files with 2 additions and 2 deletions
|
@ -1540,7 +1540,7 @@ void Hy3Layout::applyNodeDataToWindow(Hy3Node* node, bool no_animation) {
|
|||
|
||||
if (g_pCompositor->isWorkspaceSpecial(window->m_iWorkspaceID)) {
|
||||
// adjust for special workspaces
|
||||
static const auto scalefactor = ConfigValue<Hyprlang::INT>("plugin:hy3:special_scale_factor");
|
||||
static const auto scalefactor = ConfigValue<Hyprlang::FLOAT>("plugin:hy3:special_scale_factor");
|
||||
calcPos = calcPos + (calcSize - calcSize * *scalefactor) / 2.f;
|
||||
calcSize = calcSize * *scalefactor;
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {
|
|||
CONF("no_gaps_when_only", INT, 0);
|
||||
CONF("node_collapse_policy", INT, 2);
|
||||
CONF("group_inset", INT, 10);
|
||||
CONF("special_scale_factor", INT, 0.8);
|
||||
CONF("special_scale_factor", FLOAT, 0.8);
|
||||
CONF("tab_first_window", INT, 0);
|
||||
|
||||
// tabs
|
||||
|
|
Loading…
Add table
Reference in a new issue