(x_get_focus_frame): New function.