Make workspace_layout handle all cons at workspace level, not only the first one (+test)
This makes opening new windows on workspace level and moving windows to the right/left more like in the old i3.
This commit is contained in:
@ -109,4 +109,16 @@ void workspace_update_urgent_flag(Con *ws);
|
||||
*/
|
||||
void ws_force_orientation(Con *ws, orientation_t orientation);
|
||||
|
||||
/**
|
||||
* Called when a new con (with a window, not an empty or split con) should be
|
||||
* attached to the workspace (for example when managing a new window or when
|
||||
* moving an existing window to the workspace level).
|
||||
*
|
||||
* Depending on the workspace_layout setting, this function either returns the
|
||||
* workspace itself (default layout) or creates a new stacked/tabbed con and
|
||||
* returns that.
|
||||
*
|
||||
*/
|
||||
Con *workspace_attach_to(Con *ws);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user