microsoft / microsoft/wslg

WSLg only loads 1 monitor when there's several

Open
#89 22 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.