Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复分屏分辨率不一致,雷神窗口宽度可能过小的问题 #298

Merged
merged 1 commit into from
Oct 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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