-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Black screen on window close in fullscreen mode #20263
Comments
The same bug applies to Electron-Version 7 as well:
@alxmiron did you found a workaround? window.on('close', (event) => {
if (window.isFullScreen()) {
window.setFullScreen(false)
}
// The following line is being ignored :-(
window.hide()
}) |
Not yet. Yes, you can exit fullscreen or exit entire app instead of hiding, but it's not an expected behavior |
@jackple instead of a timeout you can use the callback from the |
I also encountered this problem, thanks to the window.on('close', (event) => {
if (window.isFullScreen()) {
window.once('leave-full-screen', () => window.hide())
window.setFullScreen(false)
} else {
window.hide()
}
}) |
+1 |
The Electron version reported on this issue is no longer supported. See our supported versions documentation. If this is still reproducible on a supported version, please open a new issue with any other new information that a maintainer should know. Thank you for taking the time to report this issue and helping to make Electron better! Your help is appreciated. |
This issue persists. Not that the workaround is particularly difficult, but it is a bug nonetheless. Please re-open. |
Reproduced on 13.6.1, please fix |
reopened the issue here |
Preflight Checklist
Issue Details
To Reproduce
new BrowserWindow({ frame: true })
Expected Behavior
Window is hidden
Actual Behavior
Full screen gets black
Screenshots
Notes
Bug is not actual if mainWindow was cloed from normal mode (not fullscreen)
The text was updated successfully, but these errors were encountered: