Event loop run_forever #757
Labels
B - bug
Dang, that shouldn't have happened
C - in progress
Implementation is proceeding smoothly
DS - x11
I wan't to know when every event occurs so I'm moving my window into another thread, using
run_forever
on the event loop with a callback that passes every event along with astd::time::Instant
to the window thread.When I call
gl_window.make_current
the thread blocks until I move my mouse or after I fire a couple of keyboard input events.I'm on linux and the backend seems to be X.
I have no idea how event loops work internally. I don't know what it means to "wake up the event loop". I know this has been mentioned before like in #239 and #420.
The glutin documentation says the following:
The code
The output (started moving my mouse after ~4 seconds):
Is there a way to make this work?
The text was updated successfully, but these errors were encountered: