Preserve back_and_forth during restart

Add new key "previous_workspace_name" to the json dump of the root container.
This commit is contained in:
Albert Safin
2018-12-10 21:51:30 +07:00
parent f08119298e
commit 64ab1f42b7
5 changed files with 29 additions and 3 deletions

View File

@ -11,9 +11,12 @@
#include "all.h"
#include "yajl_utils.h"
/* Stores a copy of the name of the last used workspace for the workspace
* back-and-forth switching. */
static char *previous_workspace_name = NULL;
/*
* Stores a copy of the name of the last used workspace for the workspace
* back-and-forth switching.
*
*/
char *previous_workspace_name = NULL;
/* NULL-terminated list of workspace names (in order) extracted from
* keybindings. */