summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--app/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/main.js b/app/main.js
index f79855ca00..2b5d9f234b 100644
--- a/app/main.js
+++ b/app/main.js
@@ -17,11 +17,11 @@ let trayIconManager = null;
const startTrayEventMonitor = (win) => {
if(process.platform === 'darwin') {
+ const { NSEventMonitor, NSEventMask } = require('nseventmonitor');
if(macEventMonitor === null) {
- const NSEventMonitor = require('nseventmonitor');
macEventMonitor = new NSEventMonitor();
}
- macEventMonitor.start(() => win.hide());
+ macEventMonitor.start((NSEventMask.leftMouseDown | NSEventMask.rightMouseDown), () => win.hide());
}
};