Always format real layout even when zoomed.

This commit is contained in:
nicm
2015-04-21 22:38:49 +00:00
parent 93b2871cab
commit 69f292a90e
4 changed files with 8 additions and 4 deletions

View File

@ -55,12 +55,12 @@ layout_checksum(const char *layout)
/* Dump layout as a string. */
char *
layout_dump(struct window *w)
layout_dump(struct layout_cell *root)
{
char layout[BUFSIZ], *out;
*layout = '\0';
if (layout_append(w->layout_root, layout, sizeof layout) != 0)
if (layout_append(root, layout, sizeof layout) != 0)
return (NULL);
xasprintf(&out, "%04x,%s", layout_checksum(layout), layout);