WSLg ignores ignores minimum size of X11 windows.
Klemmbaustein opened this issue · comments
Windows build number:
10.0.19045.0
Your Distribution version:
Debian 12
Your WSL versions:
Kernel version: 5.15.146.1-2
WSLg version: 1.0.60
MSRDC version: 1.2.5105
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19045.4170
Steps to reproduce:
- Open any X11 GUI app, like glxgears.
- Resize the window as small as it can get.
WSL logs:
No response
WSL dumps:
No response
Expected behavior:
Windows using X11 should not be resizable to a size smaller than their minimum size.
Actual behavior:
WSLg lets you resize any X11 window to any size, even 1x1 pixels.
Left: VSCode running on Windows at it's minimum size. Right: VSCode running on WSL with a size smaller than it's minimum size.
Left: VSCode running on Windows at it's minimum size. Right: WSL VSCode running on Wayland. It cannot be resized to be smaller than it's minimum size.
@Klemmbaustein you're accessing the X server via RDP session. That might influence the controls of the windows shown on your desktop.
@Klemmbaustein, for X11 application, the application specifies the minimum window size by WM_NORMAL_HINTS / WM_SIZE_HINTS in window property atom, would you please check if VSCode on X11 sets any? You can check via xprop
command, thanks!