Skip to content

Commit

Permalink
fix: multiple screens, has lock screen widget is not the right size
Browse files Browse the repository at this point in the history
setGeometry has no effect, setting again. maybe Qt6's bug.

Log: as title
Pms: BUG-303513
  • Loading branch information
yixinshark committed Feb 20, 2025
1 parent 6c4be23 commit 6ef05c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/widgets/fullscreenbackground.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,10 @@ void FullscreenBackground::updateGeometry()
setGeometry(m_screen->geometry());
qInfo() << "set background geometry:" << m_screen << m_screen->geometry() << "lockFrame:"
<< this << " lockframe geometry:" << this->geometry();
if (m_screen->geometry().size() != this->geometry().size()) {
qWarning() << "size not same updateGeometry: " << this->geometry() << " lockFrame:" << this;
setGeometry(m_screen->geometry());
}
}

/********************************************************
Expand Down

0 comments on commit 6ef05c6

Please sign in to comment.