Skip to content

Commit

Permalink
fix: 修复分屏分辨率不一致,雷神窗口宽度可能过小的问题
Browse files Browse the repository at this point in the history
Log: 修复分屏分辨率不一致,雷神窗口宽度可能过小的问题

Signed-off-by: Yutao Meng <[email protected]>
  • Loading branch information
ArchieMeng committed Sep 15, 2023
1 parent cf0987a commit a9d81c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/windowsmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit a9d81c0

Please sign in to comment.