config: fix crash on misnamed variable (#10549)

This commit is contained in:
littleblack111 2025-05-27 15:33:17 +08:00 committed by GitHub
parent be6ee6e55f
commit a62ccb169a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -1758,7 +1758,7 @@ inline static const std::vector<SConfigOptionDescription> CONFIG_OPTIONS = {
.data = SConfigOptionDescription::SChoiceData{0, "positional,current,opening"},
},
SConfigOptionDescription{
.value = "dwindle:precise_move",
.value = "dwindle:precise_mouse_move",
.description = "if enabled, bindm movewindow will drop the window more precisely depending on where your mouse is.",
.type = CONFIG_OPTION_BOOL,
.data = SConfigOptionDescription::SBoolData{true},

View file

@ -592,7 +592,7 @@ CConfigManager::CConfigManager() {
registerConfigVar("dwindle:split_bias", Hyprlang::INT{0});
registerConfigVar("dwindle:smart_split", Hyprlang::INT{0});
registerConfigVar("dwindle:smart_resizing", Hyprlang::INT{1});
registerConfigVar("dwindle:precise_move", Hyprlang::INT{0});
registerConfigVar("dwindle:precise_mouse_move", Hyprlang::INT{0});
registerConfigVar("master:special_scale_factor", {1.f});
registerConfigVar("master:mfact", {0.55f});