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: the quake window overlaps with the dock #335

Merged
merged 1 commit into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
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: 1 addition & 1 deletion src/main/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2470,7 +2470,7 @@ void QuakeWindow::initWindowAttribute()
resize(QSize(saveWidth, saveHeight));
// 记录雷神高度
m_quakeWindowHeight = saveHeight;
move(0, 0);
move(QApplication::primaryScreen()->availableGeometry().x(), QApplication::primaryScreen()->availableGeometry().y());
/************************ Add by m000743 sunchengxi 2020-04-27:雷神窗口任务栏移动后位置异常问题 End ************************/

/******** Add by nt001000 renfeixiang 2020-05-20:增加setQuakeWindowMinHeight函数,设置雷神最小高度 Begin***************/
Expand Down
10 changes: 0 additions & 10 deletions src/main/windowsmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,8 @@ WindowsManager *WindowsManager::instance()
void WindowsManager::runQuakeWindow(TermProperties properties)
{
if (nullptr == m_quakeWindow) {
QPoint cursorPoint = QCursor::pos();
const QScreen *cursorScreen = QGuiApplication::screenAt(cursorPoint);
qInfo() << "runQuakeWindow :create";
m_quakeWindow = new QuakeWindow(properties);
m_quakeWindow->move(cursorScreen->geometry().topLeft());
//Add by ut001000 renfeixiang 2020-11-16 设置开始雷神动画效果标志
m_quakeWindow->setAnimationFlag(false);
m_quakeWindow->show();
//Add by ut001000 renfeixiang 2020-11-16 开始从上到下的动画
m_quakeWindow->topToBottomAnimation();
m_quakeWindow->activateWindow();
return;
ArchieMeng marked this conversation as resolved.
Show resolved Hide resolved
}
// Alt+F2的显隐功能实现点
quakeWindowShowOrHide();
Expand Down
Loading