Fix gl_init events

The events system of `gl_init` changed a bit.