[PATCH v3 1/2] server: Introduce a new get_desktop_cursor_thread_input helper.