<h3 dir="auto">Preflight Checklist</h3>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>10.1.5</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>Windows 10</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>9.2.1<br>
bug appear from 9.3.0</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">when i hide the window and turn my screen off and on again, I expect the application to remain hidden</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">when I hide (win.hide) my application (close the window, app reduce inside the system tray), and I turn off my screen and turn it back on, the window reappears, nothing is clickable. inside the window only the window buttons responds, no event is emitted on the win.on (' show ', function (event)</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">run app<br>
maximise window<br>
close window<br>
off your computer screen (i have 3 screen on my computer), on your screen<br>
the electron window reappears :(<br>
for reproduce :<br>
use this code inside main.js (electron quick start)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const electron = require('electron')
const {app, BrowserWindow} = require('electron');

let win;


function createWindow() {

    win = new BrowserWindow({
        webPreferences: {
            nodeIntegration: true,
            enableRemoteModule: true,
        },
        show: false,
        title: &quot;test&quot;,
        fullscreenable : false,
        fullscreenWindowTitle : true,
        autoHideMenuBar: true,
        backgroundColor: '#000000',
        'minHeight': 600,
        'minWidth': 800,
    });
    win.setMenu(null);

    app.win = win;
    win.loadFile('index.html')
    win.once('ready-to-show', function (e) {
        win.show()

    })
    win.on('close', function (event) {
        event.preventDefault()
        win.hide();
        return false;
    });
}

function appReadyLaunch() {
    console.log(&quot;BB&quot;);
    createWindow();

}

app.on('ready',  () =&gt; {
appReadyLaunch()

});"><pre class="notranslate"><code class="notranslate">const electron = require('electron')
const {app, BrowserWindow} = require('electron');

let win;


function createWindow() {

    win = new BrowserWindow({
        webPreferences: {
            nodeIntegration: true,
            enableRemoteModule: true,
        },
        show: false,
        title: "test",
        fullscreenable : false,
        fullscreenWindowTitle : true,
        autoHideMenuBar: true,
        backgroundColor: '#000000',
        'minHeight': 600,
        'minWidth': 800,
    });
    win.setMenu(null);

    app.win = win;
    win.loadFile('index.html')
    win.once('ready-to-show', function (e) {
        win.show()

    })
    win.on('close', function (event) {
        event.preventDefault()
        win.hide();
        return false;
    });
}

function appReadyLaunch() {
    console.log("BB");
    createWindow();

}

app.on('ready',  () =&gt; {
appReadyLaunch()

});
</code></pre></div>



<h3 dir="auto">Screenshots</h3>

<h3 dir="auto">Additional Information</h3>
<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>10.1.1</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>Windows 10</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>8</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">The window should hide</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">The window stays visible but appears blank, if the window is restored from the maximized state it gets black</p>
<h3 dir="auto">To Reproduce</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="	let browserWindow = new BrowserWindow({
		show: true
	});
	browserWindow.maximize();
	browserWindow.hide();

	browserWindow.loadURL(&quot;http://www.google.com&quot;).then(() =&gt; {
	});"><pre class="notranslate"><code class="notranslate">	let browserWindow = new BrowserWindow({
		show: true
	});
	browserWindow.maximize();
	browserWindow.hide();

	browserWindow.loadURL("http://www.google.com").then(() =&gt; {
	});
</code></pre></div>
<h3 dir="auto">Screenshots</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10595986/92474422-196e9c80-f1dc-11ea-928e-1161bb607645.png"><img src="https://user-images.githubusercontent.com/10595986/92474422-196e9c80-f1dc-11ea-928e-1161bb607645.png" alt="grafik" style="max-width: 100%;"></a></p>