If moving the last ws, create a new one in its place.

This seems better than refusing to move the last workspace.
This commit is contained in:
Fernando Tarlá Cardoso Lemos
2012-01-14 20:09:09 -02:00
committed by Michael Stapelberg
parent 974e70459d
commit a22f161ab5
4 changed files with 163 additions and 114 deletions

View File

@ -26,6 +26,14 @@
*/
Con *workspace_get(const char *num, bool *created);
/*
* Returns a pointer to a new workspace in the given output. The workspace
* is created attached to the tree hierarchy through the given content
* container.
*
*/
Con *create_workspace_on_output(Output *output, Con *content);
#if 0
/**
* Sets the name (or just its number) for the given workspace. This has to