### SUMMARY | 问题概要 _No response_ ### SOFTWARE/OS VERSIONS | 软件/系统版本信息 ```plain 镜像:https://cdimage.uniontech.com/community/releases/23-Alpha/deepin-desktop-community-23-Alpha-amd64.iso 深度之家 1.0.22 ``` ### PRE-REQUIREMENT | 预置条件 1.安装镜像:https://cdimage.uniontech.com/community/releases/23-Alpha/deepin-desktop-community-23-Alpha-amd64.iso 2. 接入双屏 3. 在终端中使用命令升级系统到 V23 beta ### STEPS TO REPRODUCE | 复现步骤 1. 将鼠标放置在任务栏深度之家图标上 - 点击鼠标右键 ### OBSERVED RESULT | 观察到的结果 1. 右键菜单显示错位异常  ### EXPECTED RESULT | 期望的结果 1.深度之家的右键菜单显示在当前鼠标位置 ### ADDITIONAL INFORMATION | 额外补充 _No response_
Activity
myml commentedon May 22, 2023
@tsic404 这个是dock的问题吗?
tsic404 commentedon May 22, 2023
我看了其他带托盘的程序,右键菜单位置都是正确的。好像就deepin-home的位置不对。
myml commentedon May 24, 2023
深度之家是使用 QSystemTrayIcon 创建系统托盘的,跟踪源码时发现 QSystemTrayIcon 会检查系统是否存在 StatusNotifierWatcher 规范接口,如果不存在则回退使用 X11托盘规范 。
目前发现三个问题
QSystemTrayIcon 回退到 X11 规范创建的托盘,在V23系统上存在位置偏移的问题,复现环境是双屏+1.25倍缩放。
dde-session-daemon 没有创建 org.kde.StatusNotifierWatcher 的 dbus services 文件。
这会导致早于 dde-session-daemon 启动的程序,检测不到 StatusNotifierWatcher 接口,回退到 X11 规范。
QSystemTrayIcon 会同时检查 StatusNotifierWatcher 是否存在和 NotifierHost 是否注册。
虽然 dde-dock 在收到 StatusNotifierWatcher 创建的信号后会立即注册 NotifierHost,但是在收到信号到注册 NotifierHost 的这一小段时间,如果有程序使用 QSystemTrayIcon 创建托盘,还是会因为 NotifierHost还没注册回退到 X11 规范。
myml commentedon May 24, 2023
@justforlxz 第一个问题你说可能是因为插件引起的,谁来跟踪呢?
kegechen commentedon Jun 15, 2023
dock 先排查一下吧,毕竟这个右键行为是从 dock 这里发出的,位置应该也是dock发给托盘插件的
luodeepin commentedon Jun 20, 2023
复现路径:
14 remaining items
fix: set the default value of statusNotifierHost to true
fix: set the default value of statusNotifierHost to true
fix: set the default value of statusNotifierHost to true
ComixHe commentedon Jan 24, 2024
@dengbo11
vivianxf commentedon Jan 26, 2024
验证镜像:https://cdimage.uniontech.com/daily-iso/image-beige/CUSTOM/lichenggang/20240124/deepin-23-beige-beta3-amd64-20240124-114109.iso
验证版本:深度之家:1.5.5 dde-dock:6.0.31 dde-control-center:6.0.43 dde-daemon:6.0.33
验证步骤:提单的步骤
验证现象:双屏扩展模式下,深度之家右键菜单位置显示正常
验证结果:最新版本无法复现,先做关闭处理
fix: set the default value of statusNotifierHost to true
Develop/snipe (#652)