EGL: Properly set parent window. In X with EGL and WX frontend enabled, running the emulator created two windows. This was because the parent window was set incorrectly.