dwindle: add better automatic window drag and drop direction detection (#9704)

This commit is contained in:
littleblack111 2025-05-27 01:15:11 +08:00 committed by GitHub
parent 292a7456af
commit 4c4c9bb324
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 32 additions and 1 deletions

View file

@ -1757,6 +1757,12 @@ inline static const std::vector<SConfigOptionDescription> CONFIG_OPTIONS = {
.type = CONFIG_OPTION_CHOICE,
.data = SConfigOptionDescription::SChoiceData{0, "positional,current,opening"},
},
SConfigOptionDescription{
.value = "dwindle:precise_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},
},
/*
* master:

View file

@ -592,6 +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("master:special_scale_factor", {1.f});
registerConfigVar("master:mfact", {0.55f});