]> git.sur5r.net Git - i3/i3/commit - src/render.c
Introduce splith/splitv layouts, remove orientation
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 4 Aug 2012 01:04:00 +0000 (03:04 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 4 Aug 2012 01:13:24 +0000 (03:13 +0200)
commitde94f6da1a9f7d2b9701035b844154658d9d308f
tree3ba2fabd4b723af60e56828b79f1fb6ef7b475a3
parent077e021e26e695288ad153fea16ba0e2528cef5c
Introduce splith/splitv layouts, remove orientation

With this commit, the "default" layout is replaced by the splith and
splitv layouts. splith is equivalent to default with orientation
horizontal and splitv is equivalent to default with orientation
vertical.

The "split h" and "split v" commands continue to work as before, they
split the current container and you will end up in a split container
with layout splith (after "split h") or splitv (after "split v").

To change a splith container into a splitv container, use either "layout
splitv" or "layout toggle split". The latter command is used in the
default config as mod+l (previously "layout default"). In case you have
"layout default" in your config file, it is recommended to just replace
it by "layout toggle split", which will work as "layout default" did
before when pressing it once, but toggle between horizontal/vertical
when pressing it repeatedly.

The rationale behind this commit is that it’s cleaner to have all
parameters that influence how windows are rendered in the layout itself
rather than having a special parameter in combination with only one
layout. This enables us to change existing split containers in all cases
without breaking existing features (see ticket #464). Also, users should
feel more confident about whether they are actually splitting or just
changing an existing split container now.

As a nice side-effect, this commit brings back the "layout toggle"
feature we once had in i3 version 3 (see the userguide).

AFAIK, it is safe to use in-place restart to upgrade into versions
after this commit (switching to an older version will break your layout,
though).

Fixes #464
22 files changed:
docs/ipc
docs/userguide
i3.config
i3.config.keycodes
include/commands.h
include/con.h
include/data.h
parser-specs/commands.spec
src/click.c
src/commands.c
src/con.c
src/floating.c
src/ipc.c
src/load_layout.c
src/randr.c
src/render.c
src/tree.c
src/workspace.c
testcases/t/116-nestedcons.t
testcases/t/122-split.t
testcases/t/145-flattening.t
testcases/t/192-layout.t [new file with mode: 0644]