Skip to content

Winit: Implement native popup#11313

Draft
Murmele wants to merge 40 commits intoslint-ui:features/winit-0.31from
Murmele:mm/features/winit-0.31-popup
Draft

Winit: Implement native popup#11313
Murmele wants to merge 40 commits intoslint-ui:features/winit-0.31from
Murmele:mm/features/winit-0.31-popup

Conversation

@Murmele
Copy link
Copy Markdown
Contributor

@Murmele Murmele commented Apr 9, 2026

Fixes:

@ogoffart ogoffart changed the base branch from master to features/winit-0.31 April 9, 2026 09:46
@Murmele Murmele force-pushed the mm/features/winit-0.31-popup branch from 12d3072 to 04fbb8c Compare April 10, 2026 11:38
Murmele added 2 commits April 10, 2026 13:46
Reason: Previously always the main window adapter is used for popups as well. This is not correct, because then acting on the wrong renderer caches is done and the application might crash or memory gets not freed. To solve this problem. Showing the popup is split up in multiple steps. 1) Creating the window adapter for the popup if possible. 2) Assigning this window adapter to the popup instance so that the tree will be setup with the newly created window adapter. 3) Determine the popup location and show the created popup
@Murmele Murmele force-pushed the mm/features/winit-0.31-popup branch from 6aa4606 to bb05f92 Compare April 10, 2026 11:46
Murmele added 12 commits April 15, 2026 11:37
Reason: Otherwise determining if the window should have fixed size or should use the children layout constraints is not possible
Reason: With the changes in 65929d4 the popup has it's own layout constraints and therefore the constraints get projected to the width and height
…e notifications

So we can search for that specific popup in the parent and we don't need to store a new type. If the tracker was once evaluated it will not be notified again unless we call evaluate_as_dependency_root again
@Murmele Murmele force-pushed the mm/features/winit-0.31-popup branch from 5fd26d9 to 0c91e2a Compare April 19, 2026 08:33
Reason: we need only the position_access function and get the position from there
@Murmele Murmele force-pushed the mm/features/winit-0.31-popup branch from 5bd214b to f6fa786 Compare April 19, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant