[PATCH 2/3] winex11: Return the layout index from from detect_keyboard_layout().