Extract weston_output_set_single_mode() from RDP, to share with VNC
The ensure_single_mode()
helper in the RDP backend replaces an output's single mode. Extract it into libweston so it can be reused by the VNC backend, renamed to weston_output_set_single_mode()
.
At the same time, set the the previously missing WL_OUTPUT_MODE_CURRENT
flag on the new mode.
Split out of !1051 (merged), which depends on a Neat VNC release. Fixes #758 (closed).
Edited by Philipp Zabel