Skip to content

Commit

Permalink
fix: the quake window is covered by dock
Browse files Browse the repository at this point in the history
初始化时,将窗口移动到 avaliableGeomotry 的顶点

Issues: linuxdeepin/developer-center#6557
  • Loading branch information
zsien committed Feb 28, 2024
1 parent 620db73 commit 5562127
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 5562127

Please sign in to comment.