-
Notifications
You must be signed in to change notification settings - Fork 909
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Events for when window is maximized/minimized #1578
Comments
moving to winit, since it's something it should do, if it'll be accepted. |
We would want this as well, to be able to persist a setting that the app window was maximized so we can start up with that state |
I want I'm using WebView2 for my application and WebView2 provides a way to reduce memory consumption on inactive state.
To determine when application goes inactive and when application goes back to active state, I need to receive the events. When |
There is currently no
WindowEvent
for when a user clicks the maximized/minimized buttons. It would be great if some could be added since there is currently no way to detect that otherwise. You can set the maximized state usingset_maximized
, but you have no way of knowing when the user does that themselves. You could probably hack around it using theResized
event or something, but I think it makes more sense for that to have its own variant in theWindowEvent
enum.I'm not sure if something similar makes sense for the window fullscreen state, but an event should be added for that too if it is possible for the user to change that themselves.
The text was updated successfully, but these errors were encountered: