Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contradiction in man page and regression in multi-output workspace creation #8522

Open
sweenu opened this issue Jan 4, 2025 · 0 comments
Open
Labels
bug Not working as intended

Comments

@sweenu
Copy link

sweenu commented Jan 4, 2025

workspace <name> output <outputs...>
           Specifies  that  workspace  name  should  be  shown on the specified outputs. Multiple outputs can be listed and the first available will be used. If the workspace gets
           placed on an output further down the list and an output that is higher on the list becomes available, the workspace will be moved to the higher priority output.

           This command does not affect existing workspaces. To move an existing workspace, use the move command in combination with the workspace criteria  (non-empty  workspaces
           only) or workspace command (to switch to the workspace before moving).

For the longest time (I've been using sway since 2020), this would work like a charm: when no output was connected to my laptop, the 8 workspaces would open on my laptop and as soon as I would plug a new output, the 1:a 2:s 3:d and 4:f workspaces would automatically move to the new output as it is higher priority, if they were already created (as stated in the first paragraph, emphasis mine, and contradicted in the second paragraph). If the workspace was not created, it would get created in the right output when first opening them.

Since about a year and a half ago (unfortunately I don't have the exact version, it's a really vague estimate), when plugging new outputs, it doesn't move my existing workspaces (seems in line with the second paragraph and not the first), but rather create a new, "1" workspace. When opening a new workspace, only the 5:u, 6:i, 7:o and 8:p will switch my focus to the laptop and create the workspace there. For the first four workspaces, it will open them in the output that is currently focused, not caring for priority, and only if they are not created yet.

Restarting sway does not change the workspace layout.

So there are two issues (maybe correlated, maybe separate):

  1. New workspaces are not moved automatically when a new higher-priority output becomes available, or the first paragraph is misleading, used to represent the truth but is now obsolete.
  2. The creation of new workspaces should respect priority when the outputs are already plugged in, but it doesn't for external outputs, only for the main, laptop, one.
@sweenu sweenu added the bug Not working as intended label Jan 4, 2025
@sweenu sweenu changed the title Contradiction in man page and regression Contradiction in man page and regression in multi-output workspace creation Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended
Development

No branches or pull requests

1 participant