]> git.sur5r.net Git - i3/i3/commit
Allow changing the layout of workspaces by storing it (Thanks mhcerri)
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 16 Sep 2012 20:53:41 +0000 (22:53 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 16 Sep 2012 20:53:41 +0000 (22:53 +0200)
commitcd4dd365e87ea3ea09cde9cd8a00209284dc282d
tree694d8fa4481ac86733cf908be14a3524a0cff8af
parentd660c4bcffeb56d8a967bf9de747b8fafa691445
Allow changing the layout of workspaces by storing it (Thanks mhcerri)

Before commit 4976fa33504907510f1ee9e44884c116af0d801b, setting the
layout of workspaces to something else than the default would just mess
up the parent container of the workspace (the content container).

After that commit, it would create an unnecessary split container when
you change the layout _before_ opening any containers. To avoid this, we
now store the layout (similar to how the 'workspace_layout'
configuration directive works) and apply it when the first container is
attached to the workspace.

Fixes #796
include/data.h
src/con.c
src/ipc.c
src/load_layout.c
src/workspace.c
testcases/t/116-nestedcons.t