Refactor functions for easy reuse

This commit is contained in:
Ingo Bürk
2015-03-04 09:22:25 +01:00
parent bcc1314a2d
commit eb73059c61
5 changed files with 150 additions and 119 deletions

View File

@ -14,3 +14,10 @@
*
*/
Con *output_get_content(Con *output);
/**
* Returns an 'output' corresponding to one of left/right/down/up or a specific
* output name.
*
*/
Output *get_output_from_string(Output *current_output, const char *output_str);

View File

@ -179,3 +179,10 @@ Con *workspace_attach_to(Con *ws);
* The container inherits the layout from the workspace.
*/
Con *workspace_encapsulate(Con *ws);
/**
* Move the given workspace to the specified output.
* This returns true if and only if moving the workspace was successful.
*
*/
bool workspace_move_to_output(Con *ws, char *output);