fix(LrcBar): use availableGeometry instead for window positioning
This commit is contained in:
@@ -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){
|
||||||
|
|||||||
Reference in New Issue
Block a user