Skip to content

Avalonia: use native window decorations under WSL#4580

Merged
Gabriel Dufresne (GabrielDuf) merged 2 commits intomainfrom
wsl-fixes
Apr 13, 2026
Merged

Avalonia: use native window decorations under WSL#4580
Gabriel Dufresne (GabrielDuf) merged 2 commits intomainfrom
wsl-fixes

Conversation

@mamoreau-devolutions
Copy link
Copy Markdown
Contributor

@mamoreau-devolutions Marc-André Moreau (mamoreau-devolutions) commented Apr 13, 2026

Summary

  • Detect WSL at runtime using WSL environment variables
  • Use native window decorations on WSL instead of frameless Linux chrome
  • Keep custom Linux window buttons for non-WSL Linux

Why

WSLg can misreport maximize/input bounds for frameless windows, causing offset and non-clickable caption controls.

Scope

  • Includes only the WSL window-chrome workaround

Screenshots

Before, when maximized:

image

After, when maximized:

image

@GabrielDuf Gabriel Dufresne (GabrielDuf) merged commit b54c4c5 into main Apr 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants