fix: prevent lock screen during screensaver preview #119
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixed an issue where the lock screen would be triggered during screensaver preview mode. Added a check for m_previewing flag to ensure lock screen is not activated when previewing screensavers.
The previous logic would trigger lock screen when screensaver stopped if certain conditions were met, including when the screensaver was awakened by the window itself. However, this didn't account for preview mode where users are just testing screensavers and shouldn't be locked out. Added !m_previewing condition to prevent lock screen activation during preview sessions.
Log: Fixed screensaver preview triggering unintended lock screen
Influence:
fix: 修复屏保预览时触发锁屏的问题
修复了在屏保预览模式下会触发锁屏的问题。添加了对 m_previewing 标志的检
查,确保在预览屏保时不会激活锁屏。
之前的逻辑会在屏保停止时触发锁屏,前提是满足某些条件,包括当屏保被窗口自
身唤醒时。但这没有考虑到预览模式,用户只是测试屏保效果,不应该被锁定。添
加了 !m_previewing 条件来防止在预览会话期间激活锁屏。
Log: 修复屏保预览时意外触发锁屏的问题
Influence:
PMS: BUG-345823