From 480f621fbfa18fdc0f695bf43c17661b990de06d Mon Sep 17 00:00:00 2001 From: donghualin Date: Thu, 13 Oct 2022 05:58:00 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E6=A0=8F=E5=9C=A8=E5=8F=B3=E4=BE=A7=E6=99=BA=E8=83=BD=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 计算任务栏右侧位置的时候,x坐标设置错误导致窗口向右移动后,任务栏计算重合区域错误,将x坐标修改为正确的位置即可解决 Log: 修复任务栏在右侧智能隐藏失败的问题 Influence: 任务栏右侧智能隐藏,将窗口拖动到任务栏的右侧,观察任务栏是否隐藏 Bug: https://pms.uniontech.com/bug-view-154513.html Change-Id: Ia4357c60872acf502295d9339160339a33626bcc --- frame/window/windowmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frame/window/windowmanager.cpp b/frame/window/windowmanager.cpp index 6fb1fc266..da00261ee 100644 --- a/frame/window/windowmanager.cpp +++ b/frame/window/windowmanager.cpp @@ -375,7 +375,7 @@ QRect WindowManager::getDockGeometry(bool withoutScale) const y = windowRect.y(); if (i == 0) { - y = windowRect.y(); + x = windowRect.x(); width = windowRect.width(); } height += windowRect.height() + mainWindow->dockSpace();