From 9f3fcd30892e00f85167589a5c002450feb6d1ac Mon Sep 17 00:00:00 2001 From: Yutao Meng Date: Fri, 15 Sep 2023 16:21:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=86=E5=B1=8F?= =?UTF-8?q?=E5=88=86=E8=BE=A8=E7=8E=87=E4=B8=8D=E4=B8=80=E8=87=B4=EF=BC=8C?= =?UTF-8?q?=E9=9B=B7=E7=A5=9E=E7=AA=97=E5=8F=A3=E5=AE=BD=E5=BA=A6=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E8=BF=87=E5=B0=8F=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue: https://github.com/linuxdeepin/developer-center/issues/5455 Log: 修复分屏分辨率不一致,雷神窗口宽度可能过小的问题 Signed-off-by: Yutao Meng --- src/main/windowsmanager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/windowsmanager.cpp b/src/main/windowsmanager.cpp index 85040ba44..6ac133551 100644 --- a/src/main/windowsmanager.cpp +++ b/src/main/windowsmanager.cpp @@ -33,7 +33,9 @@ void WindowsManager::runQuakeWindow(TermProperties properties) } // 雷神窗口移动到光标所在的屏幕 QPoint cursorPoint = QCursor::pos(); + int windowWidth = QGuiApplication::screenAt(cursorPoint)->geometry().width(); m_quakeWindow->move(QGuiApplication::screenAt(cursorPoint)->geometry().topLeft()); + m_quakeWindow->setFixedWidth(windowWidth); // Alt+F2的显隐功能实现点 quakeWindowShowOrHide(); }