feat(wayland): add treeland-input-manager-unstable-v1 protocol implementation#895
Conversation
There was a problem hiding this comment.
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: AddTreelandInputManagerInterfaceV1plus 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 theinput-managermodule and include it insrc/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. |
422bd4f to
6de2973
Compare
…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:
|
[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. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
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: