fix(LrcBar): use availableGeometry instead for window positioning

This commit is contained in:
2026-01-05 00:01:03 +08:00
parent a60f430334
commit 7164a5a299

View File

@@ -32,8 +32,8 @@ LrcBar::LrcBar(QWidget *parent, LyricsManager *mgr)
setAttribute(Qt::WA_TranslucentBackground); setAttribute(Qt::WA_TranslucentBackground);
setMouseTracking(true); setMouseTracking(true);
setGeometry(QRect(QPoint((qApp->primaryScreen()->geometry().width() - windowSize.width()) / 2, setGeometry(QRect(QPoint((qApp->primaryScreen()->availableGeometry().width() - windowSize.width()) / 2,
qApp->primaryScreen()->geometry().height() - windowSize.height() - 50), qApp->primaryScreen()->availableGeometry().bottom() - windowSize.height() - 5),
windowSize)); windowSize));
connect(m_lrcMgr, &LyricsManager::lyricsLoaded, this, [this](bool){ connect(m_lrcMgr, &LyricsManager::lyricsLoaded, this, [this](bool){