Skip to content

Report popup positions from Wayland. - #22291

Merged
MrJul merged 3 commits into
mainfrom
feature/wayland-popup-position-feedback
Oct 15, 2026
Merged

MrJul merged 3 commits into
mainfrom
feature/wayland-popup-position-feedback

Conversation

@kekekeks

@kekekeks kekekeks commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

While Window positions are not available at all, Popup positions relative to their parent are reported by the protocol. This can be useful for providing visual feedback based on the actual position the compositor decided to use (e. g. implementing alternate positioning for submenus)

From the user-facing API perspective this is implemented by PopupRoot's Position being set relative to the Window (which own Position is always (0, 0) that sits at the top of popup hierarchy. So every popup tree has its own virtual coordinate space of sorts, making it somewhat consistent with other platforms.

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

NuGet packages

The packages for this pull request have been published (workflow run):

@MrJul MrJul added enhancement area-wayland backport-candidate-12.1.x Consider this PR for backporting to 12.1 branch labels Sep 24, 2026
@MrJul
MrJul added this pull request to the merge queue Oct 15, 2026
Merged via the queue into main with commit 8bbe90d Oct 15, 2026
11 checks passed
@MrJul
MrJul deleted the feature/wayland-popup-position-feedback branch October 15, 2026 10:19
MrJul pushed a commit that referenced this pull request Nov 2, 2026
@MrJul MrJul added backported-12.1.x and removed backport-candidate-12.1.x Consider this PR for backporting to 12.1 branch labels Nov 2, 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.

2 participants