Added support for tray click event on os x.
Merge pull request #1635 from FWeinb/fix-tray-click-mac

[os x]Add support for tray click event on os x