Skip to content

Make the main window resizeable on Linux#4675

Merged
Marc-André Moreau (mamoreau-devolutions) merged 1 commit intoDevolutions:mainfrom
ekse:resize-window
May 4, 2026
Merged

Make the main window resizeable on Linux#4675
Marc-André Moreau (mamoreau-devolutions) merged 1 commit intoDevolutions:mainfrom
ekse:resize-window

Conversation

@ekse
Copy link
Copy Markdown
Contributor

The main window was not resizeable because the X11 Avalonia backend treats WindowDecorations.BorderOnly as WindowDecorations.None. This change implements resize grips on the window.

2026-05-02.21-41-16.mp4

The main window was not resizeable because the X11 Avalonia backend
treats WindowDecorations.BorderOnly as WindowDecorations.None. This
change implements resize grips on the window.
@mamoreau-devolutions
Copy link
Copy Markdown
Contributor

I'd just want to make sure that this doesn't affect WSL usage - there's a runtime check for WSL to adapt it and avoid some issues: #4580

For regular Linux we can leave native decorations enabled but for WSLg it wouldn't get sized and maximized properly. Disabling decorations to get them from the Windows size instead worked better

Runtime checks for WSL are fine to adapt between the two

@ekse
Copy link
Copy Markdown
Contributor Author

I'd just want to make sure that this doesn't affect WSL usage - there's a runtime check for WSL to adapt it and avoid some issues: #4580

For regular Linux we can leave native decorations enabled but for WSLg it wouldn't get sized and maximized properly. Disabling decorations to get them from the Windows size instead worked better

Runtime checks for WSL are fine to adapt between the two

This is taken into account, the border grips are enabled only when isWsl is false. (see https://github.com/Devolutions/UniGetUI/pull/4675/changes#diff-133754dff4c1cb9804c5fabcde40f72eb6a6c36bc32e2e3bcd175e50f5f3a963R211-R214)

@mamoreau-devolutions Marc-André Moreau (mamoreau-devolutions) merged commit cc36a27 into Devolutions:main May 4, 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