WSLg only loads 1 monitor when there's several
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 11.9k
- Forks
- 429
- PR merge metrics
- No merged PRs in 30d
Description
Environment
Windows build number: Windows [version 10.0.21364.1000]
Your Distribution version: Ubuntu20.04 (wsl 2)
Your WSLg version: 1.0.17.1
Steps to reproduce
Set up a second monitor on windows. The "mutliple screen" option in "display settings" won't change anything to the bug, any option will do the same with wslg.
Expected behavior
wslg should load all monitors so that we can start our apps on the desired monitor.
Actual behavior
wslg will setup only 1 wayland monitor, so we can't, for example, define the "WAYLAND-DISPLAY" variable to "wayland-1", because there is only "wayland-0". If we choose the fullscreen option in a linux program, it will appear in our main screen, where we have all our icons.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start by reproducing the issue with Windows 10.0.21364.1000, Ubuntu 20.04 under WSL 2, WSLg 1.0.17.1, and two monitors, then trace how WSLg exposes Wayland monitors. Done means all configured monitors are available to Linux applications and fullscreen placement can target the desired monitor.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100