Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically change WSLg display size according to Windows host screen size #1281

Open
GhostScript0r opened this issue Aug 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@GhostScript0r
Copy link

Is your feature request related to a problem:

When the resolution of main display changed, WSLg won't recognize the screen size change. As a result, maximized WSLg windows would be the size of the screen when WSL last started.

This issue is prominent when I access my Windows PC remotely. On my guest PC I have a horizontal and a vertical monitor. If I start WSL when the RDP window is on the horizontal monitor and move the RDP window to the vertical monitor. The WSLg windows will still be the size of the horizontal monitor when maximized:

image

Describe the solution you'd like:

WSLg shall be able to recognize the current screen resolution real-time and not require a WSL restart to change the shape of the maximized window.

Describe alternatives you've considered:

Using Xvnc or Xrdp instead of WSLg. But those solutions will be cumbersome.

Additional context:

No response

@GhostScript0r GhostScript0r added the enhancement New feature or request label Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant