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

Tiling commands are not working as expected when not on the default screen #1217

Open JeanRemiDelteil opened 3 months ago

JeanRemiDelteil commented 3 months ago

Windows build number:

10.0.19044.0

Your Distribution version:

22.04

Your WSL versions:

WSL version: 2.0.14.0 Kernel version: 5.15.133.1-1 WSLg version: 1.0.59 MSRDC version: 1.2.4677 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows version: 10.0.19044.4046

Steps to reproduce:

  1. Connect multiple screens to the computer, preferably use different screen size then the default screen (or setup different definition) to clearly show the issue,
  2. Open a WSL graphical application,
  3. First on the default screen, test tiling commands to place the window in the left / right screen side, then test moving the window in the 4 screen corners
  4. Now, move the window on another screen, and repeat the test on this screen, and any other additional screen.

WSL logs:

No response

WSL dumps:

No response

Expected behavior:

Step 3: It positions the window as a native windows window.

Step 3: It positions the window as a native windows window.

Actual behavior:

Step 3: It position the window as a native windows window.

Step 4: It does not position the window as a native windows window. It's impossible to place the window in the 4 screen corners, and left / right positioning does not set the correct window height.

It seems that when placing the the window on the left / right position, the default screen height is used. But the other screens can have different screen sizes, hence it results in incorrect window size. As for placing the window in the screen corners, it just does not work.