Doom stays in fullscreen if toggled after maximising the window (WSLg)
- Dominant language
- Emacs Lisp
- Stars
- 22.7k
- Forks
- 3.1k
- Avg merge
- 10h 46m
- Merged PRs (30d)
- 4
Description
### I confirm that...
- [X] I have searched the [issue tracker](https://github.com/doomemacs/doomemacs/issues), [documentation](https://docs.doomemacs.org), [FAQ](https://docs.doomemacs.org/-/faq), [Discourse](https://discourse.doomemacs.org), and [Google](https://google.com), in case this issue has already been reported/resolved.
- [X] I have read "[How to Debug Issues](https://doomemacs.org/d/how2debug)", and will use it to provide as much information about this issue as possible.
- [X] The issue can be reproduced on the **latest** available commit of Doom.
- [X] The issue can be reproduced on a stable release of Emacs, such as 27 or 28. *(Doom does not support development builds like 29+ or any version ending in .50 or .9x)*
### Expected behavior
When toggling fullscreen twice (`SPC t F` or F11) after maximising the window, under WSLg, I would expect the window to get to fullscreen and back to windowed mode.
### Current behavior
When I open Emacs, maximise the window, and then toggle fullscreen (with either `SPC t F` or F11), toggling fullscreen again does not seem to revert back to windowed mode.
This still works when toggling fullscreen right after startup, with varying degree of success in other buffers.
No warnings or errors are passed to the Messages buffer. This does not seem to happen in vanilla Emacs.
### Steps to reproduce
1. Install Doom Emacs under Windows 11 (with WSLg)
2. Open Emacs
3. Maximise window
4. `M-x toggle-frame-fullscreen` or `F11` or `SPC t F`
5. Repeat step 3
Some additional Windows-specific info (that I forgot to add to the pastebin--sorry!)
```
> wsl --version
WSL version: 0.70.4.0
Kernel version: 5.15.68.1
WSLg version: 1.0.45
MSRDC version: 1.2.3575
Direct3D version: 1.606.4
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.382
```
```
Edition Windows 11 Education
Version 22H2
Installed on 26/10/2022
OS build 22621.382
Experience Windows Feature Experience Pack 1000.22632.1000.0
```
### System Information
https://pastebin.com/HxDHDzjg
Contributor guide
Assessment
This issue has not been assessed yet.