Skip to content

Fix X11 LeaveWindow not raised with software rendering - #22120

Open
MrJul wants to merge 1 commit into
AvaloniaUI:mainfrom
MrJul:fix/x11-leavewindow-software
Open

Fix X11 LeaveWindow not raised with software rendering#22120
MrJul wants to merge 1 commit into
AvaloniaUI:mainfrom
MrJul:fix/x11-leavewindow-software

Conversation

@MrJul

@MrJul MrJul commented Sep 1, 2026

Copy link
Copy Markdown
Member

What does the pull request do?

This PR fixes the raw LeaveWindow event not being raised correctly on X11 when the rendering mode is set to Software.

When the GPU is involved, Avalonia adds an extra render child window that receives input instead of the top-level one, so the pointer only moves between unrelated windows and the render window: it never goes through the actual top-level one.

With the window missing in software mode, the pointer moves between other windows and the top-level one: events with XINotifyAncestor are received instead. Only XINotifyInferior is effectively rejected.

This PR applies the logic to both Leave and Enter. It also makes the non-xinput path symmetric.

Fixed issues

@MrJul MrJul added bug area-x11 customer-priority Issue reported by a customer with a support agreement. backport-candidate-12.1.x Consider this PR for backporting to 12.1 branch backport-candidate-11.3.x Consider this PR for backporting to 11.3 branch labels Sep 1, 2026
@avaloniaui-bot

Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-x11 backport-candidate-11.3.x Consider this PR for backporting to 11.3 branch backport-candidate-12.1.x Consider this PR for backporting to 12.1 branch bug customer-priority Issue reported by a customer with a support agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Not receiving LeaveWindow to a background window on X11

2 participants