Skip to content

[Blocked] Linux: Use Wayland by default; fallback to X11 - #142

Draft
dreamsyntax wants to merge 2 commits into
hedge-dev:mainfrom
dreamsyntax:wayland
Draft

[Blocked] Linux: Use Wayland by default; fallback to X11#142
dreamsyntax wants to merge 2 commits into
hedge-dev:mainfrom
dreamsyntax:wayland

Conversation

@dreamsyntax

@dreamsyntax dreamsyntax commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

BLOCKED/PENDING:

  • Waiting for KDE Window Decorator support (expected in Avalonia UI 12.2.0+)
  • Fullscreen breaks layout until context changes

Simple/light Wayland support for Linux. There's a few ways to handle this, but I grabbed what's been working for ShadowONE.

Until Avalonia 12.2.0 (or later) comes out, window icons will be missing:

Note the top left icon will be a "W" when running with Wayland.
image

Currently, Wayland renders through EGL (with an optional dmabuf path). It supports all core functionalities you would expect: mouse, touch, keyboard, clipboard, drag-and-drop... However, a few KDE-specific niceties (global app menu, window icons, blur-behind) are planned as follow-ups.
https://avaloniaui.net/blog/release-12-1

If the Window icon is a dealbreaker, I would suggest to wait until the next Avalonia 12 update.

I will note that scaling behavior seems the same regardless of X11/Wayland - so there's not much of an advantage to have this in now other than to be ahead of the curve.

@thesupersonic16

Copy link
Copy Markdown
Member

Does this fix any other issues like scaling?

Also can you check if wayland works on flatpak? I believe permissions needed to be changed to allow it.

@dreamsyntax

dreamsyntax commented Jul 25, 2026

Copy link
Copy Markdown
Contributor Author

I'll double check the flatpak + permissions as I don't think I tried CI build.

Does this fix any other issues like scaling?

#124 (comment)
Nope, noted that above. I don't see any change. Probably implemented intentionally so scaling is uniform

@dreamsyntax

Copy link
Copy Markdown
Contributor Author

Yep, you're right. Flatpak breaks, marking draft until I resolve.

@dreamsyntax
dreamsyntax marked this pull request as draft July 25, 2026 15:56
@dreamsyntax
dreamsyntax marked this pull request as ready for review July 25, 2026 16:13
@dreamsyntax

dreamsyntax commented Jul 25, 2026

Copy link
Copy Markdown
Contributor Author

Flatpak working properly now. Tested codes and file replacement mods worked just to be sure as well.
If you want to test:
https://github.com/dreamsyntax/HedgeModManager/releases/tag/8.0.0-wayland-flatpak

@dreamsyntax

Copy link
Copy Markdown
Contributor Author

I'll test the flatpak on a Linux Mint VM (Cinnamon is still X11 in latest stable) just to make sure the fallback is working properly for X11.

@dreamsyntax

Copy link
Copy Markdown
Contributor Author

Verified works fine with X11 after the flatpak change.

@thesupersonic16

Copy link
Copy Markdown
Member

Does full screen work on wayland? Other than that I think we should wait until the window icon is fixed then merge.

@dreamsyntax
dreamsyntax marked this pull request as draft July 25, 2026 17:27
@dreamsyntax

Copy link
Copy Markdown
Contributor Author

Marking as draft for now until next Avalonia release (I'm interested for my other apps, so I'll come reopen this when I see its ready).

As for full screen, it breaks after toggling until you change pages:
image

I'll look into that once the new Avalonia.Wayland posts.

@dreamsyntax dreamsyntax changed the title Linux: Use Wayland by default; fallback to X11 [Blocked] Linux: Use Wayland by default; fallback to X11 Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants