]> git.sur5r.net Git - i3/i3/commit
load_layout: Correctly mark non-leaf containers 3508/head
authorOrestis Floros <orestisf1993@gmail.com>
Tue, 6 Nov 2018 23:06:20 +0000 (01:06 +0200)
committerOrestis Floros <orestisf1993@gmail.com>
Wed, 7 Nov 2018 00:32:12 +0000 (02:32 +0200)
commiteb53ec83b91f097914fdf4cbba433a14e9f5ff3d
tree7099b5c11c114a0901b1e432d669780ef3598cb7
parent3649ecb71e3a2bf3891f939ad00c687c1deafcf3
load_layout: Correctly mark non-leaf containers

Example problematic layout:
    {
        "layout": "splith",
        "marks": ["H1"],
        "nodes": [
            {
                "swallows": [
                    {
                        "class": "^a$"
                    }
                ]
            }
        ]
    }

Since the marks were added to the json_node during end_map, the
container that ended up getting the "H1" mark was the child instead of
the parent.
src/load_layout.c