protocol/workspace: Drop support for cosmic v1 protocol

Clients have been updated to use ext-workspace-v1 and
cosmic-workspace-v2.

Removing this should save some duplication of having to update both
cosmic workspace v1 and ext workspace code, and should help with things
like using the same workspace handle when a workspace moves to a
different group (which is something that was changed before the final
version of the ext-workspace-v1 protocol.)
This commit is contained in:
Ian Douglas Scott 2025-04-16 14:07:15 -07:00 • committed by Ian Douglas Scott
parent 2cbe89d89d
commit 85254b47d6
4 changed files with 10 additions and 713 deletions

View file

@ -593,10 +593,6 @@ where
.iter()
.filter(|w| !handle_state.workspaces.contains(w))
{
for handle in workspace_state.raw_workspace_handles(&new_workspace, &instance.id()) {
instance.workspace_enter(&handle);
changed = true;
}
for handle in workspace_state.raw_ext_workspace_handles(&new_workspace, &instance.id()) {
instance.ext_workspace_enter(&handle);
changed = true;
@ -607,10 +603,6 @@ where
.iter()
.filter(|w| !state.workspaces.contains(w))
{
for handle in workspace_state.raw_workspace_handles(&old_workspace, &instance.id()) {
instance.workspace_leave(&handle);
changed = true;
}
for handle in workspace_state.raw_ext_workspace_handles(&old_workspace, &instance.id()) {
instance.ext_workspace_leave(&handle);
changed = true;