[WSLg 1.0.73] ~1-2s delay when closing X11 GUI windows (regression after WSL 2.7.3.0 update)
Windows build number:
Microsoft Windows [Version 10.0.19045.6466]
Your Distribution version:
Ubuntu 24.04 LTS
Your WSL versions:
WSL version: 2.7.3.0 Kernel version: 6.6.114.1-1 WSLg version: 1.0.73 MSRDC version: 1.2.6676 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.26100.1-240331-1435.ge-release Windows version: 10.0.19045.6466
Steps to reproduce:
- Update WSL to 2.7.3.0 (WSLg 1.0.73)
- Run any X11 GUI application: xclock
- Click the close button on the title bar
- Observe ~1-2 second delay before the window closes
Expected Behavior
Window closes immediately upon clicking the close button (as it did before the update).
Actual Behavior
~1-2 second delay occurs between clicking close and the window actually closing. Affects all tested X11 applications: xclock, xeyes, and a custom Qt6/xcb application.
Isolation / Root Cause Evidence
Bypassing WSLg by using an external X server (VcXsrv on Windows host) with:
export DISPLAY=<windows-host-ip>:0.0
unset WAYLAND_DISPLAYeliminates the delay entirely, confirming the regression is in the WSLg layer (Weston compositor / XWayland destroy sequence), not in the applications.
Workaround
Use an external X server (VcXsrv) instead of WSLg:
export DISPLAY=<windows-host-ip>:0.0
export LIBGL_ALWAYS_INDIRECT=1
unset WAYLAND_DISPLAYWSL logs:
No response
WSL dumps:
No response
Expected behavior:
No response
Actual behavior:
After updating to WSL 2.7.3.0 / WSLg 1.0.73, all X11 GUI applications exhibit a ~1-2 second delay between clicking the close button (title bar) and the window actually closing. This did not occur on the previous WSL version.
The issue affects all X11 apps (xclock, xeyes, Qt6/xcb), confirming it is not application-specific.
Source: microsoft/wslg