Replace the discrete 'split' Con property with a simple function.

This commit is contained in:
Deiz
2012-10-03 13:10:48 -04:00
committed by Michael Stapelberg
parent d7e5da8b39
commit fdcba7b91a
9 changed files with 33 additions and 30 deletions

View File

@ -165,7 +165,7 @@ void dump_node(yajl_gen gen, struct Con *con, bool inplace_restart) {
/* provided for backwards compatibility only. */
ystr("orientation");
if (!con->split)
if (!con_is_split(con))
ystr("none");
else {
if (con_orientation(con) == HORIZ)
@ -202,9 +202,6 @@ void dump_node(yajl_gen gen, struct Con *con, bool inplace_restart) {
ystr("focused");
y(bool, (con == focused));
ystr("split");
y(bool, con->split);
ystr("layout");
switch (con->layout) {
case L_DEFAULT: