Skip to content

fix(screenshot): disable right-click menu on lock screen#843

Merged
deepin-bot[bot] merged 1 commit into
linuxdeepin:release/eaglefrom
tianming-1996:my-new-bug
May 22, 2026
Merged

fix(screenshot): disable right-click menu on lock screen#843
deepin-bot[bot] merged 1 commit into
linuxdeepin:release/eaglefrom
tianming-1996:my-new-bug

Conversation

@tianming-1996
Copy link
Copy Markdown

  • Set m_isLockedState at startup in checkIsLockScreen() to fix initial value always being false
  • Skip right-click menu popup in eventFilter when locked
  • Sync lock state to ShapesWidget on creation and DBus changes

修复(screenshot): 禁用锁屏界面下的右键菜单

  • 在 checkIsLockScreen() 启动时设置 m_isLockedState,修复初始值始终为 false 的问题
  • 在 eventFilter 中锁屏状态下跳过右键菜单弹出
  • 在 ShapesWidget 创建及 DBus 状态变化时同步锁屏状态

Log: 修复锁屏界面截图时右键菜单弹出后立即消失的问题
Bug: https://pms.uniontech.com/bug-view-256531.html

- Set m_isLockedState at startup in checkIsLockScreen() to fix
  initial value always being false
- Skip right-click menu popup in eventFilter when locked
- Sync lock state to ShapesWidget on creation and DBus changes

修复(screenshot): 禁用锁屏界面下的右键菜单

- 在 checkIsLockScreen() 启动时设置 m_isLockedState,修复初始值始终为 false 的问题
- 在 eventFilter 中锁屏状态下跳过右键菜单弹出
- 在 ShapesWidget 创建及 DBus 状态变化时同步锁屏状态

Log: 修复锁屏界面截图时右键菜单弹出后立即消失的问题
Bug: https://pms.uniontech.com/bug-view-256531.html
@deepin-ci-robot
Copy link
Copy Markdown

Hi @tianming-1996. Thanks for your PR.

I'm waiting for a linuxdeepin member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@deepin-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: add-uos, lzwind, tianming-1996

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tianming-1996
Copy link
Copy Markdown
Author

/merge

@deepin-bot deepin-bot Bot merged commit 284c63b into linuxdeepin:release/eagle May 22, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants