aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.js
diff options
context:
space:
mode:
authorLibravatar Sadetdin EYILI <sad270@users.noreply.github.com>2021-09-08 00:28:44 +0200
committerLibravatar GitHub <noreply@github.com>2021-09-08 03:58:44 +0530
commit1eb80721fd30e50369e64d87f84be34dae6c68bd (patch)
tree4b4159a9573fe003630c6494b47a94953862ffa9 /src/index.js
parentNew translations (#1880) (diff)
downloadferdium-app-1eb80721fd30e50369e64d87f84be34dae6c68bd.tar.gz
ferdium-app-1eb80721fd30e50369e64d87f84be34dae6c68bd.tar.zst
ferdium-app-1eb80721fd30e50369e64d87f84be34dae6c68bd.zip
fix: black screen in macOS when closing to systray in fullscreen mode (#1883)
fixes #1878
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js
index d2b0f56f4..55f58bb56 100644
--- a/src/index.js
+++ b/src/index.js
@@ -280,6 +280,11 @@ const createWindow = () => {
280 debug('Skip taskbar: true'); 280 debug('Skip taskbar: true');
281 mainWindow.setSkipTaskbar(true); 281 mainWindow.setSkipTaskbar(true);
282 } 282 }
283 } else if (isMac && mainWindow.isFullScreen()) {
284 debug('Window: leaveFullScreen and hide');
285 mainWindow.once('show', () => mainWindow.setFullScreen(true));
286 mainWindow.once('leave-full-screen', () => mainWindow.hide());
287 mainWindow.setFullScreen(false);
283 } else { 288 } else {
284 debug('Window: hide'); 289 debug('Window: hide');
285 mainWindow.hide(); 290 mainWindow.hide();