diff --git a/vendor/README b/vendor/README index de0db4e9d13c05ae91ab84ac02f3a3f2749ab3f4..bd1bd99de78d8d322a3eb885ce8ce5ec03d55a1a 100644 --- a/vendor/README +++ b/vendor/README @@ -1,3 +1,5 @@ 2018-11-14 ----------------- * vendor getlantern/systray with PR #74, to work around menu positioning bug in windows. +* manually add a patch for the 18x18 icon size for mac +* vendor PR #76 too (add separator to visibleitems) diff --git a/vendor/github.com/getlantern/systray/systray_windows.go b/vendor/github.com/getlantern/systray/systray_windows.go index 9d560b7280ba6a185b81412149e1f81762e8c3ec..ae9c838569380f54ee0d577672e8d8f4c1763586 100644 --- a/vendor/github.com/getlantern/systray/systray_windows.go +++ b/vendor/github.com/getlantern/systray/systray_windows.go @@ -508,9 +508,12 @@ func (t *winTray) addSeparatorMenuItem(menuId int32) error { mi.Size = uint32(unsafe.Sizeof(mi)) + t.addToVisibleItems(menuId) + position := t.getVisibleItemIndex(menuId) + res, _, err := pInsertMenuItem.Call( uintptr(t.menu), - uintptr(menuId), + uintptr(position), 1, uintptr(unsafe.Pointer(&mi)), )