master: replace always_center_master with slave_count_for_center_master (#8871)
- Replaced boolean config parameter `always_center_master` to an integer value `slave_count_for_center_master` for more control on when to center master window. - Also updated configuration parameter, type, description and related internal variable. New description: **when using orientation=center, make the master window centered only when at least this many slave windows are open. (Set 0 to always_center_master)** This effects center orientation of master layout. Now, user can control when the master window would be centered
This commit is contained in:
parent
5b37d53992
commit
fde569db65
3 changed files with 19 additions and 19 deletions
|
|
@ -477,7 +477,7 @@ CConfigManager::CConfigManager() {
|
|||
m_pConfig->addConfigValue("master:special_scale_factor", {1.f});
|
||||
m_pConfig->addConfigValue("master:mfact", {0.55f});
|
||||
m_pConfig->addConfigValue("master:new_status", {"slave"});
|
||||
m_pConfig->addConfigValue("master:always_center_master", Hyprlang::INT{0});
|
||||
m_pConfig->addConfigValue("master:slave_count_for_center_master", Hyprlang::INT{2});
|
||||
m_pConfig->addConfigValue("master:center_ignores_reserved", Hyprlang::INT{0});
|
||||
m_pConfig->addConfigValue("master:new_on_active", {"none"});
|
||||
m_pConfig->addConfigValue("master:new_on_top", Hyprlang::INT{0});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue