From cec79e55d05b745673f2c73d49540bb964daa4d1 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Tue, 28 Jan 2020 23:44:59 +0530 Subject: [PATCH] fix: Show native titlebar in Linux --- src/App.vue | 2 +- src/background.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index 27bf5734..e2db1396 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,7 +4,7 @@ class="h-screen flex flex-col font-sans overflow-hidden antialiased" > diff --git a/src/background.js b/src/background.js index 349c8a85..140c8ae5 100644 --- a/src/background.js +++ b/src/background.js @@ -11,6 +11,7 @@ import { getMainWindowSize } from './screenSize'; const isDevelopment = process.env.NODE_ENV !== 'production'; const isMac = process.platform === 'darwin'; +const isLinux = process.platform === 'linux'; // Keep a global reference of the window object, if you don't, the window will // be closed automatically when the JavaScript object is garbage collected. @@ -35,7 +36,7 @@ function createWindow() { webPreferences: { nodeIntegration: true }, - frame: false, + frame: isLinux, resizable: true });