ipc: make 'layout' a string

This commit is contained in:
Michael Stapelberg
2011-06-02 17:12:18 +02:00
parent 97e45b9cfc
commit 51bfdbf0a8
3 changed files with 34 additions and 2 deletions

View File

@ -202,7 +202,23 @@ void dump_node(yajl_gen gen, struct Con *con, bool inplace_restart) {
y(integer, (con == focused));
ystr("layout");
y(integer, con->layout);
switch (con->layout) {
case L_DEFAULT:
ystr("default");
break;
case L_STACKED:
ystr("stacked");
break;
case L_TABBED:
ystr("tabbed");
break;
case L_DOCKAREA:
ystr("dockarea");
break;
case L_OUTPUT:
ystr("output");
break;
}
ystr("border");
switch (con->border_style) {