winit icon indicating copy to clipboard operation
winit copied to clipboard

Broadcast window mode changes

Open kchibisov opened this issue 3 years ago • 1 comments
trafficstars

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).

kchibisov avatar Jun 13 '22 09:06 kchibisov

I also need this since I need to be able to detect when the window is minimized/un-minimized for my audio plugin host engine.

BillyDM avatar Sep 16 '22 22:09 BillyDM