This is a followup to old questions WSL2 X11 programs "disappear" and
Is there a way to re-attach an X Window if my X Server is in Windows?
These are from the pre-wslg era, but now I have the same issue on
WSL version: 1.2.5.0
Kernel version: 5.15.90.1
WSLg version: 1.0.51
MSRDC version: 1.2.3770
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.1848
(Ubuntu 22.04). I run emacs and GAP from inside emacs in a wslg window, then computer goes to sleep, when I wake it up the window is gone, although all the processes are intact.
Does anybody know a solution to this?