From b12de89e69d0d93c5717d4771b2f7d9079bd66d2 Mon Sep 17 00:00:00 2001 From: hong-jen kao Date: Fri, 8 Sep 2017 11:59:35 +0800 Subject: [PATCH] allow DevDocs floating on top of fullscreen app When I'm working on macOS fullscreen app, launch DevDocs.app will switch to another desktop. This commit make DevDocs.app be able to float on top of fullscreen app. --- app/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/index.js b/app/index.js index a31f848..6b8dd72 100644 --- a/app/index.js +++ b/app/index.js @@ -53,6 +53,8 @@ function createMainWindow() { titleBarStyle: 'hidden' }) + win.setAlwaysOnTop(true, "floating", 1); + if (process.platform === 'darwin') { win.setSheetOffset(24) }