rust-windowing / rust-windowing/winit
Errata on `WindowType::Popup`
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 6.2k
- Forks
- 1.3k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 9
Description
Nice to see that popup/overlay windows are finally supported, but I do have a few questions.
How do I tell whether WindowType::Popup is available? I guess we just assume that if create_window fails with Error::NotSupported(_) it is because of the window_type (and not because of something else, like transparency).
Is there any guarantee that the scale factor matches that of the parent window?
Does sizing necessarily work the same way as with full windows (usage of logical/physical pixels)? From the code it looks Wayland at least uses logical pixels.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the WindowType::Popup and create_window API documentation, including the Error::NotSupported(_) behavior, then compare the Wayland sizing code mentioned in the issue. Clarify popup availability, scale-factor guarantees, and logical versus physical pixel sizing, and update the relevant documentation once the intended guarantees are established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- desktop
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100