diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2019-05-31 16:04:11 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2019-05-31 16:04:11 +0200 |
| commit | 30e54d912f9b27fb22dbd6f77eefe6081848d75b (patch) | |
| tree | 03dd9556acbe9b9a1b08d35bba1b8c14beb69475 /gui/src | |
| parent | 704f58193b6e0616f59f305bdaf10f15f8f44936 (diff) | |
| parent | 8329677e8ed8f60ce9677c47b22c27a210066fb0 (diff) | |
| download | mullvadvpn-30e54d912f9b27fb22dbd6f77eefe6081848d75b.tar.xz mullvadvpn-30e54d912f9b27fb22dbd6f77eefe6081848d75b.zip | |
Merge branch 'fix-gray-line'
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/main/index.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts index c7e8cc0870..35ed25351f 100644 --- a/gui/src/main/index.ts +++ b/gui/src/main/index.ts @@ -241,6 +241,15 @@ class ApplicationMain { } else { log.info('Cannot close the tunnel because there is no active connection to daemon.'); } + + // The window is not closable on macOS to be able to hide the titlebar and workaround + // a shadow bug rendered above the invisible title bar. This also prevents the window from + // closing normally, even programmatically. Therefore re-enable the close button just before + // quitting the app. + // Github issue: https://github.com/electron/electron/issues/15008 + if (process.platform === 'darwin' && this.windowController) { + this.windowController.window.setClosable(true); + } } private getLocaleWithOverride(): string { @@ -1003,6 +1012,9 @@ class ApplicationMain { height: contentHeight + headerBarArrowHeight, minHeight: contentHeight + headerBarArrowHeight, transparent: true, + titleBarStyle: 'customButtonsOnHover', + minimizable: false, + closable: false, }); // make the window visible on all workspaces |
