-
Notifications
You must be signed in to change notification settings - Fork 868
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
Windows: inner_size() reports 0x0 size when window is minimized #2015
Comments
The behaviour you're expecting seems to match what I'd expect myself. |
I checked and it looks like the problem comes from the Windows API call itself. It's not mentioned in the documentation but If we want to implement the expected behavior it would require storing the window size somewhere. I'm not sure what the best way to handle that would be. |
Since this was tagged with "platform parity": at least on the systems I tested my code on, in MacOS and Wayland, there is no On the other hand, Windows triggers So from a platform parity perspective, I wonder if it would make sense to issue |
On Wayland window doesn't even know that it got minimized iirc or it's minimized, so that's kind of expected that the size doesn't change. It's a pure compositor thing and nothing can be done to know that. But returning the We can't issue minimized event on Wayland, since there's no information about that, like at all. For more take a look at https://wayland.app/protocols/xdg-shell#xdg_toplevel:request:set_minimized |
I understand and agree. My question is whether minimizing and maximizing events on windows should at all be handled via |
Maximized on Wayland should resize the window, and Maximized should issue |
Noticed this weird behavior.
If you minimize the window on Windows and then request window size using
inner_size()
, the returned value is0x0
. I think the window size should not be zero since you can hover over minimized window taskbar icon and still see the preview of the window (it can continue to render).Basically if you now want to always render (even when minimized) you have to track and maintain your own window size metrics and not rely on
inner_size()
. Seems like a bug maybe, but not sure how other platforms behave when minimized?The text was updated successfully, but these errors were encountered: