win: add right click menu support (#7727)

Enable both left and right click on the pop-up menu
This commit is contained in:
Daniel Hiltgen
2024-11-18 14:39:52 -08:00
committed by GitHub
parent 81d55d3e4d
commit 35096a7eff
2 changed files with 2 additions and 1 deletions

View File

@@ -361,7 +361,7 @@ func (t *winTray) showMenu() error {
boolRet, _, err = pTrackPopupMenu.Call(
uintptr(t.menus[0]),
TPM_BOTTOMALIGN|TPM_LEFTALIGN,
TPM_BOTTOMALIGN|TPM_LEFTALIGN|TPM_RIGHTBUTTON,
uintptr(p.X),
uintptr(p.Y),
0,