{"action":"created","issue":{"url":"https://api.github.com/repos/atom/electron/issues/4796","repository_url":"https://api.github.com/repos/atom/electron","labels_url":"https://api.github.com/repos/atom/electron/issues/4796/labels{/name}","comments_url":"https://api.github.com/repos/atom/electron/issues/4796/comments","events_url":"https://api.github.com/repos/atom/electron/issues/4796/events","html_url":"https://github.com/atom/electron/issues/4796","id":140615036,"number":4796,"title":"click event tray doesn't trigger on OS X","user":{"login":"ManuelOverdijk","id":2972864,"avatar_url":"https://avatars.githubusercontent.com/u/2972864?v=3","gravatar_id":"","url":"https://api.github.com/users/ManuelOverdijk","html_url":"https://github.com/ManuelOverdijk","followers_url":"https://api.github.com/users/ManuelOverdijk/followers","following_url":"https://api.github.com/users/ManuelOverdijk/following{/other_user}","gists_url":"https://api.github.com/users/ManuelOverdijk/gists{/gist_id}","starred_url":"https://api.github.com/users/ManuelOverdijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManuelOverdijk/subscriptions","organizations_url":"https://api.github.com/users/ManuelOverdijk/orgs","repos_url":"https://api.github.com/users/ManuelOverdijk/repos","events_url":"https://api.github.com/users/ManuelOverdijk/events{/privacy}","received_events_url":"https://api.github.com/users/ManuelOverdijk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/electron/labels/more-information-needed","name":"more-information-needed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-14T09:08:05Z","updated_at":"2016-03-16T14:47:34Z","closed_at":null,"body":"* Electron version: 0.35.0\r\n* Operating system: OS X\r\n\r\nCurrently the click event on the tray doesn't trigger on OS X, it does so on Windows\r\n\r\n``` javascript\r\ntray = new Tray(path.join(__dirname, '/img/app.png'));\r\ntray.on('click', function(){\r\n        if (mainWindow.isMinimized()) mainWindow.restore();\r\n        mainWindow.focus();\r\n    });\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/atom/electron/issues/comments/197362513","html_url":"https://github.com/atom/electron/issues/4796#issuecomment-197362513","issue_url":"https://api.github.com/repos/atom/electron/issues/4796","id":197362513,"user":{"login":"Aluxian","id":1418870,"avatar_url":"https://avatars.githubusercontent.com/u/1418870?v=3","gravatar_id":"","url":"https://api.github.com/users/Aluxian","html_url":"https://github.com/Aluxian","followers_url":"https://api.github.com/users/Aluxian/followers","following_url":"https://api.github.com/users/Aluxian/following{/other_user}","gists_url":"https://api.github.com/users/Aluxian/gists{/gist_id}","starred_url":"https://api.github.com/users/Aluxian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aluxian/subscriptions","organizations_url":"https://api.github.com/users/Aluxian/orgs","repos_url":"https://api.github.com/users/Aluxian/repos","events_url":"https://api.github.com/users/Aluxian/events{/privacy}","received_events_url":"https://api.github.com/users/Aluxian/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T14:47:34Z","updated_at":"2016-03-16T14:47:34Z","body":"This doesn't work for me either. I'm using Electron v0.37.10. Here's the code:\r\n\r\nhttps://github.com/Aluxian/Whatsie/blob/master/src/scripts/browser/managers/tray-manager.js\r\n\r\nI see \"tray right-click\" in the console, but no \"tray click\"."}}