[Bug]: Main window black screens when it's fullscreen and launches a child window
- Dominant language
- C++
- Stars
- 123k
- Forks
- 17.5k
- Avg merge
- 14h 28m
- Merged PRs (30d)
- 870
Description
### Preflight Checklist
- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.
### Electron Version
26.2.0
### What operating system are you using?
macOS
### Operating System Version
macOS Ventura 13.2.1
### What arch are you using?
arm64 (including Apple Silicon)
### Last Known Working Electron version
_No response_
### Expected Behavior
I expect that the main window stays alive when it's fullscreen and launches a child window
### Actual Behavior
child window is launched fullscreen on another Desktop/Space and main window becomes black
### Testcase Gist URL
https://gist.github.com/pushkin-/0892f7b6bf02b8b61fb3330e924e548c
### Additional Information
1. full screen main window
2. click Open Window
3. observe child window launches on another Space for some reason
4. Menu -> Close Window
5. You get sent back to the main window which is now black
Maybe related to all the other fullscreen/black screen kinds of issues I opened recently. Possibly a dupe of something
Contributor guide
Assessment
This issue has not been assessed yet.