fix closing x11 game with window close button.