Skip to content

【deepin_V23_beta2】【一般】【有空】【发散测试】【深度之家】双屏扩展模式下,深度之家右键菜单显示位置异常 #4431

Closed

Description

@luodeepin

SUMMARY | 问题概要

No response

SOFTWARE/OS VERSIONS | 软件/系统版本信息

镜像: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. 右键菜单显示错位异常
    录屏_选择区域_20230518163113

EXPECTED RESULT | 期望的结果

1.深度之家的右键菜单显示在当前鼠标位置

ADDITIONAL INFORMATION | 额外补充

No response

Activity

  1. added
    P3
    on May 18, 2023
  2. myml commented on May 22, 2023

    @myml
    Member

    @tsic404 这个是dock的问题吗?

  3. tsic404 commented on May 22, 2023

    @tsic404

    @tsic404 这个是dock的问题吗?

    我看了其他带托盘的程序,右键菜单位置都是正确的。好像就deepin-home的位置不对。

  4. myml commented on May 24, 2023

    @myml
    Member

    深度之家是使用 QSystemTrayIcon 创建系统托盘的,跟踪源码时发现 QSystemTrayIcon 会检查系统是否存在 StatusNotifierWatcher 规范接口,如果不存在则回退使用 X11托盘规范 。

    #ifndef QT_NO_SYSTEMTRAYICON
        QDBusInterface systrayHost(StatusNotifierWatcherService, StatusNotifierWatcherPath, StatusNotifierWatcherService, m_connection);
        if (systrayHost.isValid() && systrayHost.property("IsStatusNotifierHostRegistered").toBool())
            m_statusNotifierHostRegistered = true;
        else
            qCDebug(qLcMenu) << "StatusNotifierHost is not registered";
    #endif

    目前发现三个问题

    • 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 规范。

  5. myml commented on May 24, 2023

    @myml
    Member

    @justforlxz 第一个问题你说可能是因为插件引起的,谁来跟踪呢?

  6. kegechen commented on Jun 15, 2023

    @kegechen

    dock 先排查一下吧,毕竟这个右键行为是从 dock 这里发出的,位置应该也是dock发给托盘插件的

  7. self-assigned this
    on Jun 20, 2023
  8. luodeepin commented on Jun 20, 2023

    @luodeepin
    Author

    复现路径:

    1. 接入双屏 - 设置扩展模式 - 将副屏设置为主屏
    2. 将任务栏设置为仅主屏显示 - 切换复制,扩展模式 - 插拔HDMI线
    3. 再进行右键
  9. moved this from 处理中 to No status in 第二届小浣熊杯on Jun 20, 2023
  10. assigned and unassigned on Aug 1, 2023
  11. 14 remaining items

  12. ComixHe commented on Jan 24, 2024

    @ComixHe
  13. assigned and unassigned on Jan 25, 2024
  14. vivianxf commented on Jan 26, 2024

    @vivianxf

    验证镜像: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
    验证步骤:提单的步骤
    验证现象:双屏扩展模式下,深度之家右键菜单位置显示正常
    验证结果:最新版本无法复现,先做关闭处理

  15. added
    无法复现
    李晓飞
    on Jan 26, 2024
  16. moved this to CLOSED in V23 Beta2on Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3无法复现李晓飞邓博

    Type

    No type

    Projects

    • Status
      CLOSED

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions