Tall/fat layout: When changing the number of full size windows, reset the main axis biases. Fixes #6123
This commit is contained in:
parent
f61ddd62d1
commit
856fddec3c
1 changed files with 2 additions and 0 deletions
|
|
@ -198,10 +198,12 @@ def neighbors_for_window(self, window: WindowType, windows: WindowList) -> Neigh
|
|||
def layout_action(self, action_name: str, args: Sequence[str], all_windows: WindowList) -> Optional[bool]:
|
||||
if action_name == 'increase_num_full_size_windows':
|
||||
self.layout_opts.full_size += 1
|
||||
self.main_bias = list(self.layout_opts.build_bias_list())
|
||||
return True
|
||||
if action_name == 'decrease_num_full_size_windows':
|
||||
if self.layout_opts.full_size > 1:
|
||||
self.layout_opts.full_size -= 1
|
||||
self.main_bias = list(self.layout_opts.build_bias_list())
|
||||
return True
|
||||
if action_name == 'mirror':
|
||||
action = (args or ('toggle',))[0]
|
||||
|
|
|
|||
Loading…
Reference in a new issue