-
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
adds support for fn set_suspend_callback #2297
Conversation
I would not be surprised if it has simply been replaced with the Having not looked at the #2118 tried to handle different Android lifecycle events. It'd be nice to have these available at some point, but they're not mandatory for proper window management unlike the (badly named, IMO) |
do you think I should just drop this then? It was meant to fix https://github.com/rust-windowing/glutin/blob/bab33a84dfb094ff65c059400bed7993434638e2/glutin/src/api/android/mod.rs#L76 but then I don't know there how could I handle the Resume and Suspend. I only have access to an https://docs.rs/winit/latest/winit/event_loop/struct.EventLoopWindowTarget.html which does not seem to have calls for that. PS: I know nothing about windowing, just trying to do some OpenGL stuff from Flutter but it ended up requiring stuff from these libs |
Yes, because:
That's exactly what I expect in a
I don't know too much about Flutter but afaik it handles the Android window itself, so you shouldn't use something like (But it's nice to finally fix |
I'm using glium for opengl stuff, and gonna try to render to a SurfaceTexture. I have everything setted up, but this compiling error was preventing me from getting things done. So no windowing, but still gotta fix it. So should I just remove the glutin call |
Yes. I hope you don't mind but I've started taking things from here. We'll merge rust-windowing/glutin#1398 which fixes some compiler errors, then on top figure out how to best handle the For the time being we recreate the entire glutin OpenGL context + surface, see the working example here: https://github.com/MarijnS95/glutin/commits/wr |
No problem, thank you so much. I just want to have this stuff working, one way or another :) |
Fix for rust-windowing/glutin#1307 but I still don´t know what to put into the implementation of
set_suspend_callback
. It looks like this repo had this but now does not have it anymore, and I couldn't find the implementation for it. What should I put there? At least it compiles nowCHANGELOG.md
if knowledge of this change could be valuable to users