Skip to content

Commit c3ea5d7

Browse files
committed
fix: update lock/login widget geometry when window showing
as title Log: as title Pms: BUG-314341
1 parent 9c45655 commit c3ea5d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/widgets/fullscreenbackground.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,14 @@ void FullScreenBackground::showEvent(QShowEvent *event)
359359
activateWindow();
360360
}
361361

362+
#ifndef ENABLE_DSS_SNIPE
362363
// setScreen中有设置updateGeometry,单屏不需要再次设置
363364
if (qApp->screens().size() > 1) {
364365
updateGeometry();
365366
}
367+
#else
368+
updateGeometry();
369+
#endif
366370

367371
// 显示的时候需要置顶,截图在上方的话无法显示锁屏 见Bug-140545
368372
raise();

0 commit comments

Comments
 (0)