XMapWindow in set_active_window