From bf21836c443508123903b0c7b6af28e499f10bf7 Mon Sep 17 00:00:00 2001 From: Yuya Ochiai Date: Mon, 5 Jun 2017 22:48:54 +0900 Subject: [PATCH] Fix desktop notifications not working when the window is minimized Blur webview when the main window loses its focus. --- CHANGELOG.md | 4 ++++ src/main/mainWindow.js | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 18543123738..622dbce076a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,10 @@ Release date: TBD - Fixed mis-aligned `+` button of tab bar. [#541](https://github.com/mattermost/desktop/issues/541) +#### Windows + - Fixed desktop notifications not working when the window has been minimized from inactive state. + [#522](https://github.com/mattermost/desktop/issues/522) + --- ## Release v3.7.0 diff --git a/src/main/mainWindow.js b/src/main/mainWindow.js index 83175758604..74d37fae102 100644 --- a/src/main/mainWindow.js +++ b/src/main/mainWindow.js @@ -77,6 +77,7 @@ function createMainWindow(config, options) { // Ideally, app should detect that OS is shutting down. mainWindow.on('blur', () => { saveWindowState(boundsInfoPath, mainWindow); + mainWindow.blurWebView(); }); mainWindow.on('close', (event) => {