Commit 50e8d64
fix: simulate right-click on tray item long press
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-3645271 parent 0faf4a7 commit 50e8d64
5 files changed
Lines changed: 45 additions & 1 deletion
File tree
- panels/dock
- tray
- quickpanel
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1008 | 1008 | | |
1009 | 1009 | | |
1010 | 1010 | | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
55 | 60 | | |
56 | 61 | | |
57 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
120 | 138 | | |
121 | 139 | | |
0 commit comments