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

WIP workspace pin and move requests #48

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

ids1024
Copy link
Member

@ids1024 ids1024 commented Jan 30, 2025

Workspace pinning, as needed for pop-os/cosmic-workspaces-epoch#108.

That may not be very useful without a way to move workspaces. Particularly as pinned workspaces are moved automatically between outputs. So that is also added here.

Moving workspaces takes a axis argument, so it can handle two or more dimensional coordinates. The assumption (I still need to add docs here) is that the coordinates of workspaces on other dimensions would be unchanged. Though the upstream protocol is intentionally vague enough that this won't suit all uses. It could instead assume only one axis.

Now that ext-workspace-v1 exists, cosmic-workspace should probably be replaced with a v2 protocol that extends the upstream on, or turned into an extension protocol as was done with toplevel handles. If the latter isn't too awkward, that would help with migration of workspaces and screencopy.

Needs compositor and client implementation.

@Drakulix
Copy link
Member

Drakulix commented Feb 1, 2025

Now that ext-workspace-v1 exists, cosmic-workspace should probably be replaced with a v2 protocol that extends the upstream on, or turned into an extension protocol as was done with toplevel handles. If the latter isn't too awkward, that would help with migration of workspaces and screencopy.

Yeah, agreeing with this. Either way the new methods seem fine.

@ids1024 ids1024 force-pushed the workspace-pin-move branch from 666772d to 8d46a2a Compare February 4, 2025 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants