PistonDevelopers/conrod

Glium "Hello world" example misses events

Opened this issue · 0 comments

Using events_loop.run_forever the way it does only results in a single event being captured per loop. If multiple events are generated, the remaining events are missed!

This is noticable on windows as maximize/restore events often do not trigger a redraw (because the resize event is fired immediately after a move event) and some keyboard events are missed (since device events are generated at the same time).

Switching to events_loop.poll_events seems to fix the issue.