Broadcast window mode changes
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 30/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- rust
- Domain
- desktop, operating-systems
Research direction
Start by reviewing the existing resize events and WindowEvent API, then compare how fullscreen, maximized, and minimized state changes are observed across supported platforms. Define how state changes should be bundled with resize events and what the public WindowAttrs representation should contain; done means applications can reliably react to these transitions.
Written by the indexing model from the issue text.
Description
When the widnow changes state, like it goes fullscreen, maximized, etc, winit should broadcast window state. I'd suggest to bundle it with resize events, and probably rename it.
pub struct WindowAttrs {
maximized: bool,
fullscreen: bool,
minimized: bool,
}
enum WindowEvent {
Configure(size: PhysicalSize<u32>, attrs: WindowAttrs)
}
This api is essential to know when the window gets fullscreened and disable things like opacity or change buttons if they're drawn by the window. Also the app could change layout in fullscreen (hide status bar, like browser).
- Dominant language
- Rust
- Stars
- 6.2k
- Forks
- 1.3k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 9
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.
More from rust-windowing/winit
-
B - bug DS - appkit
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
rust-windowing/winit#4666 · 1 comment ·
-
DS - x11
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
rust-windowing/winit#4479 · 5 comments · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
rust-windowing/winit#4701 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
rust-windowing/winit#4698 · 2 comments ·
-
B - bug DS - win32
Difficulty 3/5 1-2 days Newbie friendliness 35/100
rust-windowing/winit#4691 ·
All issues in rust-windowing/winit
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100