Skip to content

fix: simulate right-click on tray item long press#1628

Merged
deepin-bot[bot] merged 1 commit into
linuxdeepin:masterfrom
MyLeeJiEun:fork-from-master-0611-fix-issue-364527
Jun 11, 2026
Merged

fix: simulate right-click on tray item long press#1628
deepin-bot[bot] merged 1 commit into
linuxdeepin:masterfrom
MyLeeJiEun:fork-from-master-0611-fix-issue-364527

Conversation

@MyLeeJiEun

Copy link
Copy Markdown
Contributor
  1. Add sendRightClickForSurface method to synthesize right-click events via Wayland seat for tray surfaces
  2. Expose shellSurface property in PluginSurface for QML access
  3. Handle long press in ShellSurfaceItemProxy TapHandler to trigger right-click on tray items
  4. Handle long press in PanelTrayItem MouseArea and prevent normal click from firing after long press

Log: Simulate right-click mouse events on tray items when long-pressed via touch input

fix: 托盘项长按模拟右键点击

  1. 新增 sendRightClickForSurface 方法,通过 Wayland seat 向托盘 表面发送右键点击事件
  2. 在 PluginSurface 中暴露 shellSurface 属性供 QML 访问
  3. 在 ShellSurfaceItemProxy 的 TapHandler 中处理长按,触发 托盘项右键点击
  4. 在 PanelTrayItem 的 MouseArea 中处理长按并防止长按结束后 误触发普通点击

Log: 在触控长按托盘项时模拟右键点击鼠标事件
PMS: BUG-364527

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @MyLeeJiEun, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@deepin-ci-robot

Copy link
Copy Markdown

Hi @MyLeeJiEun. 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.

@MyLeeJiEun MyLeeJiEun force-pushed the fork-from-master-0611-fix-issue-364527 branch from 18838a7 to e5b13b0 Compare June 11, 2026 05:35
Comment thread panels/dock/tray/ShellSurfaceItemProxy.qml Outdated
@MyLeeJiEun MyLeeJiEun force-pushed the fork-from-master-0611-fix-issue-364527 branch 2 times, most recently from 5cdc2e1 to af9423f Compare June 11, 2026 09:25
@MyLeeJiEun

Copy link
Copy Markdown
Contributor Author

/merge

@deepin-bot

deepin-bot Bot commented Jun 11, 2026

Copy link
Copy Markdown

This pr cannot be merged! (status: behind)

1. Add sendRightClickForSurface method to synthesize right-click
   events via Wayland seat for tray surfaces
2. Expose shellSurface property in PluginSurface for QML access
3. Handle long press in ShellSurfaceItemProxy TapHandler to trigger
   right-click on tray items
4. Handle long press in PanelTrayItem MouseArea and prevent normal
   click from firing after long press

Log: Simulate right-click mouse events on tray items when long-pressed via touch input

fix: 托盘项长按模拟右键点击

1. 新增 sendRightClickForSurface 方法,通过 Wayland seat 向托盘
   表面发送右键点击事件
2. 在 PluginSurface 中暴露 shellSurface 属性供 QML 访问
3. 在 ShellSurfaceItemProxy 的 TapHandler 中处理长按,触发
   托盘项右键点击
4. 在 PanelTrayItem 的 MouseArea 中处理长按并防止长按结束后
   误触发普通点击

Log: 在触控长按托盘项时模拟右键点击鼠标事件
PMS: BUG-364527
@mhduiy mhduiy force-pushed the fork-from-master-0611-fix-issue-364527 branch from af9423f to 61c3daf Compare June 11, 2026 09:40
@mhduiy

mhduiy commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

/forcemerge

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: mhduiy, MyLeeJiEun

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

@deepin-bot

deepin-bot Bot commented Jun 11, 2026

Copy link
Copy Markdown

This pr force merged! (status: blocked)

@deepin-bot deepin-bot Bot merged commit 50e8d64 into linuxdeepin:master Jun 11, 2026
7 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.

3 participants