Repository navigation
Wayland, Windows, MacOS: Popup Implementation - #4543
Merged
Merged
Conversation
Murmele
commented
May 15, 2026
Murmele
commented
May 15, 2026
Murmele
marked this pull request as ready for review
May 18, 2026 08:06
Murmele
commented
May 18, 2026
ogoffart
reviewed
May 18, 2026
Murmele
commented
May 26, 2026
Murmele
force-pushed
the
popup
branch
2 times, most recently
from
June 4, 2026 12:59
facdfde to
87f6327
Compare
added 15 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: Otherwise for client side decorations the position will be wrong
ogoffart
approved these changes
Jul 24, 2026
ogoffart
left a comment
Contributor
There was a problem hiding this comment.
This is IMHO good enough to be merged now.
Work on the cross-platform anchoring system can be done in a follow-up. (this is already a big PR enough)
Contributor
|
I'd like to test again how well the current branch addresses my remaining problems I had. I think I can get around to it today. |
#Conflicts: # winit-wayland/src/seat/pointer/mod.rs # winit-wayland/src/state.rs # winit-wayland/src/window/mod.rs # winit-wayland/src/window/state.rs
Contributor
|
Merging this to unlock further work. |
kchibisov
pushed a commit
that referenced
this pull request
Sep 4, 2026
Implement proper decorationless popups by specifying the type of the child window with with_type() With this commit, different kind of child windows can be created - Popups: Special windows without any decoration which can be positioned relative to the parent - Window: Normal window with a parent or not The type can be specified during creation of the Window using the window_attributes and the with_type() function. As default a normal Window is used. If Popup is choosen a parent must be specified, otherwise the Popup creation fails with an Error returned by the new() function. Related issues: #403 and #4256
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement proper decorationless popups by specifying the type of the child window with
with_type()With this PR different kind of child windows can be created
The type can be specified during creation of the Window using the window_attributes and the
with_type()function. As default a normal Window is used. IfPopupis choosen a parent must be specified, otherwise the Popup creation fails with an Error returned by thenew()function.Related issues: #403 and #4256
changelogmodule if knowledge of this change could be valuable to usersPlatforms
Wayland:
Bildschirmaufzeichnung.vom.2026-06-04.13-18-16.mp4
This work is sponsored by the NLnet foundation