From 33cb29102a023dd42cd77ad82c8904e98754a3fb Mon Sep 17 00:00:00 2001 From: zhaoyingzhen Date: Wed, 23 Apr 2025 11:00:09 +0800 Subject: [PATCH] fix: update lock/login widget geometry when window showing as title Log: as title Pms: BUG-314341 --- src/widgets/fullscreenbackground.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/widgets/fullscreenbackground.cpp b/src/widgets/fullscreenbackground.cpp index ccef0fb7..fe0ac3e7 100644 --- a/src/widgets/fullscreenbackground.cpp +++ b/src/widgets/fullscreenbackground.cpp @@ -359,10 +359,14 @@ void FullScreenBackground::showEvent(QShowEvent *event) activateWindow(); } +#ifndef ENABLE_DSS_SNIPE // setScreen中有设置updateGeometry,单屏不需要再次设置 if (qApp->screens().size() > 1) { updateGeometry(); } +#else + updateGeometry(); +#endif // 显示的时候需要置顶,截图在上方的话无法显示锁屏 见Bug-140545 raise();