From aa7caf40d844928800b51279ac464db3411f4075 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..16cf7f7 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) }