Merge pull request #1513 from Airblader/defect-1473

Move workspace to assigned output when renaming it
This commit is contained in:
Michael Stapelberg
2015-03-13 00:52:52 -07:00
6 changed files with 255 additions and 116 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);