fix(dock): prevent dock from taking focus - #1679
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdjusts the dock’s Wayland layer-shell configuration so that it never acquires keyboard focus, ensuring existing application focus is preserved when interacting with the dock. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
1. Disable keyboard interactivity for the layer-shell surface. 2. Keep application focus unchanged when interacting with the dock. Log: Prevent the dock from acquiring keyboard focus. Influence: Dock interaction no longer takes app focus. fix(dock): 防止 Dock 获取焦点 1. 禁用 layer-shell 表面的键盘交互。 2. 与 Dock 交互时保持当前应用焦点不变。 Log: 防止 Dock 获取键盘焦点。 PMS: TASK-393373 Influence: Dock 交互不再抢占应用焦点。
deepin pr auto review★ 总体评分:95分■ 【总体评价】
■ 【详细分析】
■ 【改进建议代码示例】 // Dock 窗口的 Layer Shell 属性配置,修改 keyboardInteractivity 以避免抢占键盘焦点
69: DLayerShellWindow.layer: DLayerShellWindow.LayerTop
70: DLayerShellWindow.exclusionZone: Panel.hideMode === Dock.KeepShowing ? Applet.dockSize : 0
71: DLayerShellWindow.scope: "dde-shell/dock"
72: // 禁用键盘交互性,避免 Dock 面板显示时抢占键盘焦点,干扰其他应用或桌面的正常输入
73: DLayerShellWindow.keyboardInteractivity: DLayerShellWindow.KeyboardInteractivityNone
74:
75: D.DWindow.enabled: true
76: D.DWindow.windowRadius: 0 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, mhduiy 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 |
Log: Prevent the dock from acquiring keyboard focus.
Influence: Dock interaction no longer takes app focus.
fix(dock): 防止 Dock 获取焦点
Log: 防止 Dock 获取键盘焦点。
Influence: Dock 交互不再抢占应用焦点。
Summary by Sourcery
Bug Fixes: