Closed alexheretic closed 3 weeks ago
Building window outside of event loop is deprecated. Inside of event loop everything is still there as before.
WindowAttributes::with_inner_size
etc don't seem deprecated. It's just that I can no longer query the primary monitor info any more to use that dynamically.
I haven't migrated to the new trait yet. So I guess this can only be done now with that now. Just seems a bit of an odd limitation.
ActiveEventLoop
has primary_monitor
and that's the type you work with inside the loop. The limitation is because you need loop running to get such information in general.
The API was not that reliable before and primary monitor as a concept is not a great thing either.
Ok thanks for the info
I used the primary monitor size to inform setting up of
WindowAttributes
(previouslyWindowBuilder
in 0.29). This no longer seems possible in 0.30 as these methods were moved out ofEventLoop
.Is it possible to access this info before building the window with 0.30?