properly serialize floating/scratchpad state when restarting

This commit is contained in:
Michael Stapelberg
2012-01-05 21:39:18 +00:00
parent ec7ed75c01
commit 91499ed2c7
3 changed files with 39 additions and 0 deletions

View File

@ -274,6 +274,22 @@ void dump_node(yajl_gen gen, struct Con *con, bool inplace_restart) {
ystr("fullscreen_mode");
y(integer, con->fullscreen_mode);
ystr("floating");
switch (con->floating) {
case FLOATING_AUTO_OFF:
ystr("auto_off");
break;
case FLOATING_AUTO_ON:
ystr("auto_on");
break;
case FLOATING_USER_OFF:
ystr("user_off");
break;
case FLOATING_USER_ON:
ystr("user_on");
break;
}
ystr("swallows");
y(array_open);
Match *match;