Skip to content

feat(wayland): add treeland-input-manager-unstable-v1 protocol implementation#895

Merged
zccrs merged 1 commit into
linuxdeepin:masterfrom
zzxyb:input
May 27, 2026
Merged

feat(wayland): add treeland-input-manager-unstable-v1 protocol implementation#895
zccrs merged 1 commit into
linuxdeepin:masterfrom
zzxyb:input

Conversation

@zzxyb
Copy link
Copy Markdown
Collaborator

@zzxyb zzxyb commented May 26, 2026

implemented on top of QtWaylandServer generated protocol classes.

Log: add treeland-input-manager-unstable-v1 protocol implementation
Tasks: https://pms.uniontech.com/task-view-389477.html

Influence:

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Sorry @zzxyb, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@zzxyb zzxyb requested review from Groveer and zccrs May 26, 2026 07:38
@zzxyb zzxyb marked this pull request as draft May 26, 2026 13:01
@zzxyb zzxyb marked this pull request as ready for review May 27, 2026 02:34
Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Sorry @zzxyb, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

中文:该 PR 新增 treeland-input-manager-unstable-v1 Wayland 协议的服务端实现,基于 QtWaylandServer 生成的协议类,为客户端提供鼠标/触摸板/键盘配置对象的创建与能力通知机制,并将新模块纳入构建系统。

English: This PR adds a server-side implementation of the treeland-input-manager-unstable-v1 Wayland protocol on top of QtWaylandServer-generated classes, providing capability notifications and per-seat mouse/touchpad/keyboard settings/configuration objects, and wires the new module into the build.

Changes:

  • 中文:新增 TreelandInputManagerInterfaceV1 及鼠标/触摸板/键盘 settings 与 pointer configuration 的协议对象实现。
    English: Add TreelandInputManagerInterfaceV1 plus mouse/touchpad/keyboard settings and pointer configuration protocol objects.
  • 中文:在输入设备增删时向客户端广播 capability 变化,并在 bind 时发送初始 capability。
    English: Broadcast capability changes on input add/remove, and send initial capabilities on bind.
  • 中文:添加 input-manager 模块的 CMake 集成并加入 src/modules 构建。
    English: Add CMake integration for the input-manager module and include it in src/modules.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 14 comments.

File Description
src/modules/input-manager/inputmanagerinterfacev1.h 中文:声明 input-manager v1 相关接口与配置对象类型。 English: Declares the input-manager v1 interfaces and configuration object types.
src/modules/input-manager/inputmanagerinterfacev1.cpp 中文:实现协议对象、资源生命周期与 capability 广播逻辑。 English: Implements protocol objects, resource lifetimes, and capability broadcast logic.
src/modules/input-manager/CMakeLists.txt 中文:生成并编译 treeland-input-manager-unstable-v1 协议代码并加入 libtreeland。 English: Generates/builds the protocol code and adds the module sources to libtreeland.
src/modules/CMakeLists.txt 中文:将 input-manager 子目录加入模块构建。 English: Adds the input-manager subdirectory to the module build.

Comment thread src/modules/input-manager/inputmanagerinterfacev1.cpp
Comment thread src/modules/input-manager/inputmanagerinterfacev1.cpp Outdated
Comment thread src/modules/input-manager/inputmanagerinterfacev1.cpp Outdated
Comment thread src/modules/input-manager/inputmanagerinterfacev1.cpp Outdated
Comment thread src/modules/input-manager/inputmanagerinterfacev1.cpp Outdated
Comment thread src/modules/input-manager/inputmanagerinterfacev1.cpp
Comment thread src/modules/input-manager/inputmanagerinterfacev1.cpp
Comment thread src/modules/input-manager/inputmanagerinterfacev1.cpp Outdated
Comment thread src/modules/input-manager/inputmanagerinterfacev1.cpp Outdated
Comment thread src/modules/input-manager/inputmanagerinterfacev1.h
@zzxyb zzxyb force-pushed the input branch 2 times, most recently from 422bd4f to 6de2973 Compare May 27, 2026 03:32
Comment thread src/modules/input-manager/inputmanagerinterfacev1.cpp
@zzxyb zzxyb requested a review from zccrs May 27, 2026 05:16
@zzxyb zzxyb changed the title feat: add treeland-input-manager-unstable-v1 protocol implementation feat(wayland): add treeland-input-manager-unstable-v1 protocol implementation May 27, 2026
…entation

implemented on top of QtWaylandServer generated protocol classes.

Log: add treeland-input-manager-unstable-v1 protocol implementation
Tasks: https://pms.uniontech.com/task-view-389477.html

Influence:
@deepin-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: zccrs, zzxyb

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

@zccrs zccrs merged commit a6afb27 into linuxdeepin:master May 27, 2026
9 checks passed
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.

4 participants