mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-02 15:45:21 +00:00
fix: 多次切换显示模式后dock位置异常的问题
响应了太多屏幕信息变化,将大量重复调用去掉 monitorUpdateTimer 本来就可以更新位置 Bug: https://pms.uniontech.com/bug-view-158709.html Log: 修复wayland dock位置异常问题 Influence: wayland dock position incorrect Change-Id: Ia686089736d6077b47d44c2eaecfbc4240400501
This commit is contained in:
parent
a799d4fe1e
commit
c62c13bc45
@ -878,7 +878,11 @@ void MultiScreenWorker::onRequestUpdatePosition(const Position &fromPos, const P
|
||||
|
||||
void MultiScreenWorker::onRequestUpdateMonitorInfo()
|
||||
{
|
||||
resetDockScreen();
|
||||
// resetDockScreen 调用太频繁,未在合适的时机调用时出现 wayland set_position 数值异常
|
||||
// 推测是 qt 未能正确传递窗口位置到 waylandserver, 此处修改经过测试可以较好的规避此问题。
|
||||
// for test : DOCK_RESET_NOW=true dde-dock
|
||||
if (qEnvironmentVariableIsSet("DOCK_RESET_NOW"))
|
||||
resetDockScreen(); // m_monitorUpdateTimer timeout will call resetDockScreen
|
||||
|
||||
// 只需要在屏幕信息变化的时候更新,其他时间不需要更新
|
||||
onRequestUpdateRegionMonitor();
|
||||
|
Loading…
x
Reference in New Issue
Block a user