From 0531079f61bcaa141d6e96f24edde5e9c3591915 Mon Sep 17 00:00:00 2001 From: rhysd Date: Tue, 11 Aug 2015 21:42:41 +0900 Subject: [PATCH] Make visible window on all workspaces In OS X, gitify is now bound to specific work space where gitify firstly started. When I click the menu icon in other workspace, the window will be opened in the bound work space and current workspace is forced to be changed. I used `BrowserWindow.setVisibleOnAllWorkspaces()` API to solve this issue. https://github.com/atom/electron/blob/master/docs/api/browser-window.md#browserwindowsetvisibleonallworkspacesvisible I think all menu bar application should set this option to true. --- main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/main.js b/main.js index a8d749d17..78de6394b 100644 --- a/main.js +++ b/main.js @@ -42,6 +42,7 @@ app.on('ready', function(){ appIcon.window = new BrowserWindow(defaults); appIcon.window.loadUrl('file://' + __dirname + '/index.html'); appIcon.window.on('blur', hideWindow); + appIcon.window.setVisibleOnAllWorkspaces(true); initMenu(); }