Skip to content

Commit

Permalink
fix: should center window according to available geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
BLumia committed Jan 4, 2025
1 parent 6d7d0e4 commit eb04ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ void MainWindow::centerWindow()
Qt::LeftToRight,
Qt::AlignCenter,
this->size(),
qApp->screenAt(QCursor::pos())->geometry()
qApp->screenAt(QCursor::pos())->availableGeometry()
)
);
}
Expand Down

0 comments on commit eb04ac3

Please sign in to comment.