]> git.sur5r.net Git - i3/i3/commit
Make resize grow|shrink width|height work for a nested split in the same direction. 2036/head
authorIngo Bürk <ingo.buerk@tngtech.com>
Sun, 25 Oct 2015 12:03:56 +0000 (13:03 +0100)
committerIngo Bürk <ingo.buerk@tngtech.com>
Sun, 25 Oct 2015 12:03:56 +0000 (13:03 +0100)
commit10b1b394784ba4a2d84b24aad11368730e170663
treeefbc45e3a98f93b06c9541d47f7dc37e358a74cd
parent185a2f24ba9fde8a8e1df5a60c7c2b7b620ef73b
Make resize grow|shrink width|height work for a nested split in the same direction.

Suppose a horizontally oriented workspace has two windows open. Issuing "split h" on
the right window creates a nested horizontal container. If we now resize in "width"
direction, the resize doesn't work because it will only operate on the current parent,
which is a container with only one child, so the resize command exits.

This is unexpected behavior from a user point of view. Hence, with this patch, we
ensure that we don't just go up the tree until we find a parent with the correct
orientation, but also keep going if that parent has only a single child.

fixes #2015
src/commands.c
testcases/t/141-resize.t