Skip to content

Popup anchor system refinement - #4645

Closed
Murmele wants to merge 67 commits into
rust-windowing:masterfrom
Murmele:popup_anchor
Closed

Popup anchor system refinement#4645
Murmele wants to merge 67 commits into
rust-windowing:masterfrom
Murmele:popup_anchor

Conversation

@Murmele

@Murmele Murmele commented Jul 27, 2026

Copy link
Copy Markdown
Contributor
  • Tested on all platforms changed
  • Added an entry to the changelog module if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality

Tested on:

  • Windows
  • Wayland
  • MacOs
  • X11 Does not support popups

Murmele added 30 commits June 4, 2026 15:07
Reason: Because a normal window can have a parent window as well, like a Dialog
Reason: otherwise the child surface is anchored to the center
Reason: otherwise the height of the client side decoration is not considered and therefore the location is shifted
Reason: There are multiple pointers to the smithay popup. Once in state.windows and one time in the popup object it self. Just dropping the popup object releases only one pointer but we have to notify the state to release also the other
…he position

Reason: Much easier in the resize handle
Reason: we have to call resize to initialize the viewport to map to correct window size
Reason: So it is clear which kind of position it is
Reason: On wayland popups don't get automatically keyboard grab. So request on creation
Reason: Because wayland or the event loop could destroy the popup and therefore it is anymore available
Reason: Otherwise it will not be dropped
@Murmele
Murmele marked this pull request as ready for review July 27, 2026 14:21
@Murmele
Murmele marked this pull request as draft July 27, 2026 14:21
@Murmele Murmele closed this Jul 27, 2026
@Murmele

Murmele commented Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

Closed in favour of #4646

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.

1 participant