diff options
| author | khushal-solves <khushal.solves@gmail.com> | 2024-12-30 04:41:16 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-29 23:11:16 +0000 |
| commit | fde569db6519b613369c863d192c67dedb386910 (patch) | |
| tree | 0b5dca0c1a40c05fe91a0e53a752550c5a8d6be8 /src/config/ConfigDescriptions.hpp | |
| parent | 5b37d53992f3f9bfd7f5483a85f99adf7ac104f3 (diff) | |
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
Diffstat (limited to 'src/config/ConfigDescriptions.hpp')
| -rw-r--r-- | src/config/ConfigDescriptions.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config/ConfigDescriptions.hpp b/src/config/ConfigDescriptions.hpp index 6792a763..e1c9cb46 100644 --- a/src/config/ConfigDescriptions.hpp +++ b/src/config/ConfigDescriptions.hpp @@ -1603,10 +1603,10 @@ inline static const std::vector<SConfigOptionDescription> CONFIG_OPTIONS = { .data = SConfigOptionDescription::SBoolData{true}, }, SConfigOptionDescription{ - .value = "master:always_center_master", - .description = "when using orientation=center, keep the master window centered, even when it is the only window in the workspace.", - .type = CONFIG_OPTION_BOOL, - .data = SConfigOptionDescription::SBoolData{false}, + .value = "master:slave_count_for_center_master", + .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)", + .type = CONFIG_OPTION_INT, + .data = SConfigOptionDescription::SRangeData{2, 0, 10}, //##TODO RANGE? }, SConfigOptionDescription{ .value = "master:center_ignores_reserved", |
