-
Notifications
You must be signed in to change notification settings - Fork 931
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
Need to get info about window state (maybe only on Windows) #208
Comments
I'd add that it would be nice to be able to query Also, does this need to be Windows specific? I imagine that most WMs provide something similar, although IIRC on OS X, "Maximized" and "fullscreen" often mean the same thing. |
We would love to have either a |
FTR, an |
I'd definitely be alright with having this. It should be fine to have both a We already keep track of this information internally on the Windows backend, so exposing this should be trivial there. |
- To start, this just ignores the special `Resized(0, 0)` overload that winit uses on Windows to notify a minimize event. See rust-windowing/winit#208 - This fixes a bug on Windows where minimizing adjusts all of the egui window positions.
- To start, this just ignores the special `Resized(0, 0)` overload that winit uses on Windows to notify a minimize event. See rust-windowing/winit#208 - This fixes a bug on Windows where minimizing adjusts all of the egui window positions.
…positions. - Fixes emilk#518 - This bug is caused by an issue in winit where minimized windows will be given 0 width and height on Windows. - See: rust-windowing/winit#208 - See also: hasenbanck/egui_winit_platform#19
…positions. - Closes emilk#518 - This bug is caused by an issue in winit where minimized windows will be given 0 width and height on Windows. - See: rust-windowing/winit#208 - See also: hasenbanck/egui_winit_platform#19
…positions. (#522) - Closes #518 - This bug is caused by an issue in winit where minimized windows will be given 0 width and height on Windows. - See: rust-windowing/winit#208 - See also: hasenbanck/egui_winit_platform#19
Need to add possibility emit
Maximized
andMinimized
window events towinit
.Current implementation on window minimizing only sends
Resized
event, where window size onWindows
machines equals to zero (w = 0, h = 0
). Sometimes it causes bugs in programs (like games), where aspect ratio dynamically calculated on window size change.There are two suggestions to implement:
WindowEvent::Minimized
andWindowEvent::Maximized
, as the result of window minimization don't sendWindowEvent::Resized
, only that two newWindowEvent::Resized(u32, u32)
signature to a newWindowEvent::Resized(u32, u32, bool)
one, wherebool
parameter will be a windowminized
(true
)/maximized
(false
) stateLook at the following PR's:
The text was updated successfully, but these errors were encountered: