-
Notifications
You must be signed in to change notification settings - Fork 904
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
InnerSizeWriter does not give a way to read the suggested size #3080
Comments
I think it can, would you be up for adding it in a PR? (Or maybe the intention is to just query the requested size with |
I'm happy to submit a PR. I hesitated only due to needing to come up with a name for the function :) Maybe |
I just confirmed that on Web |
It was intentionally done like that, because you can query window and that the handle once done clone, won't be able to provide a size hints, because it's all invalid. The window is also not locked to size changes (and can't be, because it could change at any time on e.g. X11, because the size is on the server), so you're encouraged to use |
Isn't this handled in
I don't understand what you are trying to say here. It seems to me that you are suggesting that setting the size on |
yeah, it's sort of pointless, because it has no use, we just need a handler to do a sync adjustment, but you can get the size of the window just fine from the window itself. Having it on the writer would mean that it's a resize event, while in reality, it's not a resize event and you don't have to resize anything when getting this event. |
I was just discussing with @kchibisov on IRC how we could remove the whole thing, but that requires more discussion. See #2921. I would say that the ultimate solution is to remove the whole |
In the previous
ScaleFactorChanged
variant, we had access to read the suggested size of the window. As of 0.29.1-beta (should this have been 0.29.0-beta.1 as it's a beta of 0.29.0 not 0.29.1?), there is not a way to read the suggested size. Since the event loop is invoked with theScaleFactorChanged
variant before the inner size is updated, there is no way to read the suggested size withinScaleFactorChanged
anymore.Can
InnerSizeWriter
have a function added to retrieve the suggested size?The text was updated successfully, but these errors were encountered: