Skip to content

chore: remove deprecated treeland-dde-shell-v1 protocol - #146

Open
deepin-wm wants to merge 1 commit into
linuxdeepin:masterfrom
deepin-wm:agent/bot/e33f32c2b2cd
Open

deepin-wm wants to merge 1 commit into
linuxdeepin:masterfrom
deepin-wm:agent/bot/e33f32c2b2cd

Conversation

@deepin-wm

@deepin-wm deepin-wm commented Nov 25, 2026 •

Copy link
Copy Markdown

treeland-dde-shell-v1 is deprecated and clients have moved to treeland-dde-shell-unstable-v2, so the v1 protocol description is no longer used by anything.

Changes

  • remove deprecated/treeland-dde-shell-v1.xml
  • drop it from the install list, so the installed protocol set no longer ships the v1 XML
  • update tests/protocols/INDEX.md (4 -> 3 protocols, v1 row removed)

Notes

The version is still 0.9.1; dropping a file that used to be installed is a silent change of the installed file set for downstream users, so a version bump / changelog entry may be wanted at release time.

Companion PR removing the compositor-side v1 implementation: linuxdeepin/treeland (see the linked PR).

Summary by Sourcery

Remove the deprecated treeland-dde-shell-v1 protocol from the repository and installed protocol package.

Enhancements:

  • Remove the deprecated treeland-dde-shell-v1 protocol and its no-longer-creatable legacy interfaces from the packaged protocol set.

Build:

  • Stop installing the deleted v1 protocol description.

Documentation:

  • Update protocol guidance and English and Chinese documentation to reflect removal of the v1 XML and its legacy interfaces.
  • Correct the protocol naming example in the contributor guidance.

treeland dropped the v1 implementation, so stop shipping the XML with
the deprecated protocols.
@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: deepin-wm

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sourcery-ai

sourcery-ai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Reviewer's Guide

API

Remove the deprecated v1 protocol definition so the obsolete interface is no longer part of the protocol package.

  • deprecated/treeland-dde-shell-v1.xml (deleted)

Configuration

Drop the deleted v1 XML from the deprecated protocol install list.

  • CMakeLists.txt L67 (removed lines)

Documentation

Update the English and Chinese migration notes to clarify that the v1 XML and its no-op objects have been removed.

  • public/README.md L35-37
  • public/README.zh_CN.md L36-38

Correct the protocol naming example to refer to the DDM protocol.

  • AGENTS.md L36

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 4 issues

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="CMakeLists.txt" line_range="67" />
<code_context>
   deprecated/treeland-personalization-manager-v1.xml
   deprecated/treeland-prelaunch-splash-v1.xml
   deprecated/treeland-screensaver-v1.xml
-  deprecated/treeland-dde-shell-v1.xml
   deprecated/treeland-show-desktop-unstable-v1.xml
   deprecated/treeland-shortcut-manager-v1.xml
</code_context>
<issue_to_address>
**Removed XML remains discoverable**

When an existing prefix is upgraded with `cmake --install`, cMake’s `install(FILES ...)` copies the current list but does not remove files installed by an earlier version, so the v1 XML remains in the prefix and downstream users can still find it.

Remove the v1 XML from the install prefix during the upgrade.
</issue_to_address>

### Comment 2
<location path="CMakeLists.txt" line_range="67" />
<code_context>
   deprecated/treeland-personalization-manager-v1.xml
   deprecated/treeland-prelaunch-splash-v1.xml
   deprecated/treeland-screensaver-v1.xml
-  deprecated/treeland-dde-shell-v1.xml
   deprecated/treeland-show-desktop-unstable-v1.xml
   deprecated/treeland-shortcut-manager-v1.xml
</code_context>
<issue_to_address>
**Deprecated XML stops installing**

When the default install configuration is used, the removed XML is no longer in `TREELAND_PROTOCOL_DEPRECATED_XML_FILES`, so the default installation step skips it even though `TREELAND_PROTOCOLS_INSTALL_DEPRECATED` is ON. Downstream users no longer receive this deprecated protocol description.

Keep the XML in the deprecated install list, or update the knowledge-base rule to allow this removal.
</issue_to_address>

### Comment 3
<location path="public/README.md" line_range="35" />
<code_context>
+Consumers should rebind as `treeland_dde_shell_manager_v2`, recreate shell surfaces through `get_shell_surface`, switch to `set_skip_flags`, and treat `overlay` as 1 (unchanged) while `normal` (0) restores the regular window layer; window-picker consumers have no replacement and must drop the functionality. The old XML has been removed from the package.
</code_context>
<issue_to_address>
**Migration notes point to missing XML**

When readers follow the v1 migration notes, the English and Chinese migration notes direct readers to `deprecated/`, where the v1 XML no longer exists, while also saying it was removed from the package, leaving its repository location unclear.

Update both migration notes to give consistent guidance about where the v1 XML is located.

Also at `public/README.zh_CN.md:36`.
</issue_to_address>

### Comment 4
<location path="CMakeLists.txt" line_range="67" />
<code_context>
   deprecated/treeland-personalization-manager-v1.xml
   deprecated/treeland-prelaunch-splash-v1.xml
   deprecated/treeland-screensaver-v1.xml
-  deprecated/treeland-dde-shell-v1.xml
   deprecated/treeland-show-desktop-unstable-v1.xml
   deprecated/treeland-shortcut-manager-v1.xml
</code_context>
<issue_to_address>
**Protocol inventory update is missing**

The deprecated install list drops the v1 XML, but the promised `tests/protocols/INDEX.md` update is absent, so the stated 4-to-3 inventory change is not delivered.

Add or update the protocol index so it reflects the removal, or correct the description if no such index is maintained.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread CMakeLists.txt
deprecated/treeland-personalization-manager-v1.xml
deprecated/treeland-prelaunch-splash-v1.xml
deprecated/treeland-screensaver-v1.xml
deprecated/treeland-dde-shell-v1.xml

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Removed XML remains discoverable

When an existing prefix is upgraded with cmake --install, cMake’s install(FILES ...) copies the current list but does not remove files installed by an earlier version, so the v1 XML remains in the prefix and downstream users can still find it.

Remove the v1 XML from the install prefix during the upgrade.

Prompt for AI agents
In `CMakeLists.txt` at line 67:

**Removed XML remains discoverable**

When an existing prefix is upgraded with `cmake --install`, cMake’s `install(FILES ...)` copies the current list but does not remove files installed by an earlier version, so the v1 XML remains in the prefix and downstream users can still find it.

Remove the v1 XML from the install prefix during the upgrade.

Comment thread CMakeLists.txt
deprecated/treeland-personalization-manager-v1.xml
deprecated/treeland-prelaunch-splash-v1.xml
deprecated/treeland-screensaver-v1.xml
deprecated/treeland-dde-shell-v1.xml

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Deprecated XML stops installing

When the default install configuration is used, the removed XML is no longer in TREELAND_PROTOCOL_DEPRECATED_XML_FILES, so the default installation step skips it even though TREELAND_PROTOCOLS_INSTALL_DEPRECATED is ON. Downstream users no longer receive this deprecated protocol description.

Keep the XML in the deprecated install list, or update the knowledge-base rule to allow this removal.

Prompt for AI agents
In `CMakeLists.txt` at line 67:

**Deprecated XML stops installing**

When the default install configuration is used, the removed XML is no longer in `TREELAND_PROTOCOL_DEPRECATED_XML_FILES`, so the default installation step skips it even though `TREELAND_PROTOCOLS_INSTALL_DEPRECATED` is ON. Downstream users no longer receive this deprecated protocol description.

Keep the XML in the deprecated install list, or update the knowledge-base rule to allow this removal.

From AGENTS.md L124:

The `deprecated/` directory has no README protocol table. Deprecated files are still installed by default (`TREELAND_PROTOCOLS_INSTALL_DEPRECATED` is `ON`).

Comment thread public/README.md
5. The v2 globals must reject binds from non-privileged clients.

Consumers should rebind as `treeland_dde_shell_manager_v2`, recreate shell surfaces through `get_shell_surface`, switch to `set_skip_flags`, and treat `overlay` as 1 (unchanged) while `normal` (0) restores the regular window layer; window-picker consumers have no replacement and must drop the functionality. The old XML is kept installed during migration but must not be used in new code.
Consumers should rebind as `treeland_dde_shell_manager_v2`, recreate shell surfaces through `get_shell_surface`, switch to `set_skip_flags`, and treat `overlay` as 1 (unchanged) while `normal` (0) restores the regular window layer; window-picker consumers have no replacement and must drop the functionality. The old XML has been removed from the package.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚪ Low · Migration notes point to missing XML

When readers follow the v1 migration notes, the English and Chinese migration notes direct readers to deprecated/, where the v1 XML no longer exists, while also saying it was removed from the package, leaving its repository location unclear.

Update both migration notes to give consistent guidance about where the v1 XML is located.

Also at public/README.zh_CN.md:36.

Prompt for AI agents
In `public/README.md` at line 35:

**Migration notes point to missing XML**

When readers follow the v1 migration notes, the English and Chinese migration notes direct readers to `deprecated/`, where the v1 XML no longer exists, while also saying it was removed from the package, leaving its repository location unclear.

Update both migration notes to give consistent guidance about where the v1 XML is located.

Also at `public/README.zh_CN.md:36`.

Comment thread CMakeLists.txt
deprecated/treeland-personalization-manager-v1.xml
deprecated/treeland-prelaunch-splash-v1.xml
deprecated/treeland-screensaver-v1.xml
deprecated/treeland-dde-shell-v1.xml

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚪ Low · Protocol inventory update is missing

The deprecated install list drops the v1 XML, but the promised tests/protocols/INDEX.md update is absent, so the stated 4-to-3 inventory change is not delivered.

Add or update the protocol index so it reflects the removal, or correct the description if no such index is maintained.

Prompt for AI agents
In `CMakeLists.txt` at line 67:

**Protocol inventory update is missing**

The deprecated install list drops the v1 XML, but the promised `tests/protocols/INDEX.md` update is absent, so the stated 4-to-3 inventory change is not delivered.

Add or update the protocol index so it reflects the removal, or correct the description if no such index is maintained.

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.

3 participants