mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-02 15:45:21 +00:00
fix: Wayland环境上显示模式改变时任务栏的位置需要调整
Wayland环境上显示模式改变时任务栏的位置需要调整 Log: 修复设置缩放后复制切扩展时任务栏显示一半问题 Bug: https://pms.uniontech.com/bug-view-127569.html Influence: 显示模式切换时任务栏正常显示 Change-Id: Ib18c8e8fbd3a894169857926a2654460840acb59
This commit is contained in:
parent
356648a990
commit
aa70b849a1
@ -37,6 +37,7 @@ DisplayManager::DisplayManager(QObject *parent)
|
||||
if (Utils::IS_WAYLAND_DISPLAY) {
|
||||
m_displayInter = new DisplayInter("com.deepin.daemon.Display", "/com/deepin/daemon/Display",QDBusConnection::sessionBus(), this);
|
||||
connect(m_displayInter, &__Display::PrimaryChanged, this, &DisplayManager::dockInfoChanged);
|
||||
connect(m_displayInter, &__Display::DisplayModeChanged, this, &DisplayManager::dockInfoChanged);
|
||||
} else {
|
||||
connect(qApp, &QApplication::primaryScreenChanged, this, &DisplayManager::dockInfoChanged);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user