microsoft / wslg

Enabling the Windows Subsystem for Linux to include support for Wayland and X server related scenarios
MIT License
9.9k stars 296 forks source link

WSLg ignores ignores minimum size of X11 windows. #1223

Open Klemmbaustein opened 3 months ago

Klemmbaustein commented 3 months ago

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:

  1. Open any X11 GUI app, like glxgears.
  2. 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. image

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. image

zcobol commented 3 months ago

@Klemmbaustein you're accessing the X server via RDP session. That might influence the controls of the windows shown on your desktop.

hideyukn88 commented 2 months ago

@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!