mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
fix: 修复struct区域异常的问题
struct区域错误导致窗口行为异常 Log: 修复struct区域异常的问题 Influence: 窗口行为异常 Bug: https://pms.uniontech.com/bug-view-148031.html Change-Id: Ib56352ff0d22fc16acfe1db9be9366309269842b
This commit is contained in:
parent
08a7b7be2b
commit
044f13a219
@ -764,25 +764,25 @@ void MultiScreenWorker::onRequestNotifyWindowManager()
|
||||
switch (m_position) {
|
||||
case Position::Top:
|
||||
varList[0] = 1;
|
||||
varList[1] = dockGeometry.y() + dockGeometry.height() + WINDOWMARGIN * ratio;
|
||||
varList[1] = dockGeometry.height();
|
||||
varList[2] = dockGeometry.x();
|
||||
varList[3] = dockGeometry.x() + dockGeometry.width();
|
||||
break;
|
||||
case Position::Bottom:
|
||||
varList[0] = 3;
|
||||
varList[1] = DIS_INS->screenRawHeight() - dockGeometry.y() + WINDOWMARGIN * ratio;
|
||||
varList[1] = dockGeometry.height();
|
||||
varList[2] = dockGeometry.x();
|
||||
varList[3] = dockGeometry.x() + dockGeometry.width();
|
||||
break;
|
||||
case Position::Left:
|
||||
varList[0] = 0;
|
||||
varList[1] = dockGeometry.x() + dockGeometry.width() + WINDOWMARGIN * ratio;
|
||||
varList[1] = dockGeometry.width();
|
||||
varList[2] = dockGeometry.y();
|
||||
varList[3] = dockGeometry.y() + dockGeometry.height();
|
||||
break;
|
||||
case Position::Right:
|
||||
varList[0] = 2;
|
||||
varList[1] = DIS_INS->screenRawWidth() - dockGeometry.x() + WINDOWMARGIN * ratio;
|
||||
varList[1] = dockGeometry.width();
|
||||
varList[2] = dockGeometry.y();
|
||||
varList[3] = dockGeometry.y() + dockGeometry.height();
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user