From dda2b72ce057e7451bb75b3474eac35962df57a1 Mon Sep 17 00:00:00 2001 From: miikkatu Date: Sun, 1 Apr 2018 14:58:46 +0300 Subject: [PATCH] Fix black screen on macOS after maximizing LBRY and then closing --- src/main/createWindow.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/createWindow.js b/src/main/createWindow.js index d83f9b1c3..738ab792a 100644 --- a/src/main/createWindow.js +++ b/src/main/createWindow.js @@ -78,7 +78,14 @@ export default appState => { window.on('close', event => { if (!appState.isQuitting && !appState.autoUpdateAccepted) { event.preventDefault(); - window.hide(); + if (window.isFullScreen()) { + window.once('leave-full-screen', () => { + window.hide(); + }); + window.setFullScreen(false); + } else { + window.hide(); + } } }); -- 2.45.3