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 cosmic-workspace-v2 protocol #1225

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

WIP cosmic-workspace-v2 protocol #1225

wants to merge 5 commits into from

Conversation

ids1024
Copy link
Member

@ids1024 ids1024 commented Feb 19, 2025

pop-os/cosmic-protocols#51

(Partly) working, but needs a couple fixes, and update to toplevel-info/toplevel-management (both here and in cctk).

@ids1024 ids1024 force-pushed the workspaces-v2 branch 2 times, most recently from 8277e78 to 26cd8a2 Compare February 19, 2025 22:29
@ids1024
Copy link
Member Author

ids1024 commented Feb 19, 2025

Oh, and I guess it needs a zcosmic_image_source_v1 for capturing ext workspaces. Annoying, but not hard to add.

ids1024 added a commit to pop-os/cosmic-workspaces-epoch that referenced this pull request Feb 20, 2025
Requires pop-os/cosmic-protocols#51,
pop-os/cosmic-comp#1225.

The new protocol version is a hard requirement, and this will panic
without it.
ids1024 added a commit to pop-os/cosmic-workspaces-epoch that referenced this pull request Feb 20, 2025
Requires pop-os/cosmic-protocols#51,
pop-os/cosmic-comp#1225.

The new protocol version is a hard requirement, and this will panic
without it.
ids1024 added a commit to pop-os/cosmic-workspaces-epoch that referenced this pull request Feb 21, 2025
Requires pop-os/cosmic-protocols#51,
pop-os/cosmic-comp#1225.

The new protocol version is a hard requirement, and this will panic
without it.
@ids1024 ids1024 force-pushed the workspaces-v2 branch 2 times, most recently from 0dda5bd to 0a631bc Compare February 21, 2025 20:35
The protocol states that these should always be sent, but this was
not initially sending bitflags if they were empty. That works, but isn't
what the protocol states.

Not wrapping the bitflag fields in options works well for `Workspace`,
but not for `WorkspaceDataInner`.
Already depends on `WorkspaceHandler`, so it can get the handle, and
toplevel info uses `WorkspaceHandle`s.
`cosmic-comp` handles `SetTilingState` requests, so it looks like it was
incorrectly not advertising this.
ids1024 added a commit to pop-os/cosmic-workspaces-epoch that referenced this pull request Feb 21, 2025
Requires pop-os/cosmic-protocols#51,
pop-os/cosmic-comp#1225.

The new protocol version is a hard requirement, and this will panic
without it.
This new protocol extends `ext-workspace-v1` with the same additional
functionality `cosmic-workspace-v1` provided. Toplevel info and toplevel
management are also updated to use ext handles, and there's an image
source for ext workspaces.

For now, the old protocol is still supported.
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.

1 participant