ipc: change border_style to human-readable string instead of enum value
This commit is contained in:
parent
eb8ad348b2
commit
9c05c18156
12
src/ipc.c
12
src/ipc.c
|
@ -206,7 +206,17 @@ void dump_node(yajl_gen gen, struct Con *con, bool inplace_restart) {
|
||||||
y(integer, con->layout);
|
y(integer, con->layout);
|
||||||
|
|
||||||
ystr("border");
|
ystr("border");
|
||||||
y(integer, con->border_style);
|
switch (con->border_style) {
|
||||||
|
case BS_NORMAL:
|
||||||
|
ystr("normal");
|
||||||
|
break;
|
||||||
|
case BS_NONE:
|
||||||
|
ystr("none");
|
||||||
|
break;
|
||||||
|
case BS_1PIXEL:
|
||||||
|
ystr("1pixel");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
dump_rect(gen, "rect", con->rect);
|
dump_rect(gen, "rect", con->rect);
|
||||||
dump_rect(gen, "window_rect", con->window_rect);
|
dump_rect(gen, "window_rect", con->window_rect);
|
||||||
|
|
|
@ -30,7 +30,7 @@ my $expected = {
|
||||||
focus => ignore(),
|
focus => ignore(),
|
||||||
focused => 0,
|
focused => 0,
|
||||||
urgent => 0,
|
urgent => 0,
|
||||||
border => 0,
|
border => 'normal',
|
||||||
'floating_nodes' => ignore(),
|
'floating_nodes' => ignore(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue