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 5bbd537
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
dde-session-shell (6.0.28) unstable; urgency=medium

* fix: multiple screens, has lock screen widget is not the right size

-- Deepin Packages Builder <packages@deepin.org> Thu, 20 Feb 2025 15:13:05 +0800

dde-session-shell (6.0.27) unstable; urgency=medium

* chore: adapt to Qt6.
Expand Down
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 5bbd537

Please sign in to comment.