mirror of
https://github.com/swaywm/sway.git
synced 2025-11-18 06:59:48 -05:00
Allow multiple outputs for workspace output
`i3 4.16` allows users to list multiple outputs for a workspace and the first available will be used. The syntax is as follows: `workspace <workspace> output <outputs...>` Additionally when the workspace is created, the outputs get added to the output priority list in the order specified. This ensures that if a higher output gets connected, the workspace will move to the higher output. This works the same way as if the user had a workspace on an output, disconnected the output, and then later reconnected the output.
This commit is contained in:
parent
80a1c340a9
commit
12876932a9
5 changed files with 66 additions and 25 deletions
|
|
@ -183,7 +183,7 @@ struct side_gaps {
|
|||
*/
|
||||
struct workspace_config {
|
||||
char *workspace;
|
||||
char *output;
|
||||
list_t *outputs;
|
||||
int gaps_inner;
|
||||
struct side_gaps gaps_outer;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue