The evdpy should be used for the X11 window creation and in the event thread. dpy should only be used for GL.