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

@ -24,6 +24,13 @@
#define NET_WM_DESKTOP_NONE 0xFFFFFFF0
#define NET_WM_DESKTOP_ALL 0xFFFFFFFF
/**
* Stores a copy of the name of the last used workspace for the workspace
* back-and-forth switching.
*
*/
extern char *previous_workspace_name;
/**
* Returns the workspace with the given name or NULL if such a workspace does
* not exist.