mirror of
https://github.com/swaywm/sway.git
synced 2025-11-07 13:29:56 -05:00
enforce workspace output assignents
when creating a new output, move to that output all extant workspaces that are assigned to that output. (unrelated) remove comment that was no longer applicable, fix spacing in an assignment
This commit is contained in:
parent
a0315dc849
commit
d291a29f30
3 changed files with 22 additions and 15 deletions
|
|
@ -2325,7 +2325,7 @@ static struct cmd_results *cmd_workspace(int argc, char **argv) {
|
|||
// Handle workspace next/prev
|
||||
swayc_t *ws = NULL;
|
||||
if (argc == 2) {
|
||||
if (!(ws=workspace_by_number(argv[1]))) {
|
||||
if (!(ws = workspace_by_number(argv[1]))) {
|
||||
ws = workspace_create(argv[1]);
|
||||
}
|
||||
} else if (strcasecmp(argv[0], "next") == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue