The rest calls of _get_front_most_window fixed