Skip to content

Report disposed WaylandEglWsiSurface render target - #21857

Merged
MrJul merged 1 commit into
AvaloniaUI:mainfrom
MrJul:fix/wayland-hide-show-window
Jul 28, 2026
Merged

Report disposed WaylandEglWsiSurface render target#21857
MrJul merged 1 commit into
AvaloniaUI:mainfrom
MrJul:fix/wayland-hide-show-window

Conversation

@MrJul

@MrJul MrJul commented Jul 25, 2026

Copy link
Copy Markdown
Member

What does the pull request do?

This PR ensures that WaylandEglWsiSurface.RenderTarget correctly reports its disposal to its parent surface, allowing it to be recreated, for example if the window is hidden then shown again.

Only the WSI EGL path (the default on Wayland) was affected, the DMA-BUF one was already doing the right thing.

What is the current behavior?

The render target isn't re-created and the window stays invisible.

What is the updated/expected behavior with this PR?

The render target is properly re-created.

Fixed issues

@MrJul MrJul added bug area-wayland backport-candidate-12.1.x Consider this PR for backporting to 12.1 branch labels Jul 25, 2026
@avaloniaui-bot

Copy link
Copy Markdown

You can test this PR using the following package version. 12.2.999-cibuild0067779-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@MrJul
MrJul added this pull request to the merge queue Jul 28, 2026
Merged via the queue into AvaloniaUI:main with commit 82d9395 Jul 28, 2026
11 checks passed
@MrJul
MrJul deleted the fix/wayland-hide-show-window branch July 28, 2026 14:20
@MrJul MrJul added backported-12.1.x and removed backport-candidate-12.1.x Consider this PR for backporting to 12.1 branch labels Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Native Wayland: Window.Hide() then Window.Show() fails to remap the window after the first hide

3 participants