-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Broadcast window mode changes #2334
Copy link
Copy link
Labels
C - needs discussionDirection must be ironed outDirection must be ironed outS - apiDesign and usabilityDesign and usability
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).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C - needs discussionDirection must be ironed outDirection must be ironed outS - apiDesign and usabilityDesign and usability