backend/drm: Add support for hotplug_mode_update connector property

This connector property is used by virtual graphics drivers to indicate
that a virtual display has changed its list of supported resolutions and
updated its preferred mode. In the event of a hotplug the connector is
considered to be "re-plugged" without disconnecting first. This allows
virtual displays to be resized automatically when their window size
changes.

Signed-off-by: Ian Forbes <ian.forbes@broadcom.com>
This commit is contained in:
Ian Forbes 2024-11-04 15:19:13 -06:00
parent 3fdbfb0be8
commit a8611fdfb2
3 changed files with 10 additions and 0 deletions

View file

@ -22,6 +22,7 @@ struct wlr_drm_connector_props {
uint32_t panel_orientation; // not guaranteed to exist
uint32_t content_type; // not guaranteed to exist
uint32_t max_bpc; // not guaranteed to exist
uint32_t hotplug_mode_update; // not guaranteed to exist, VMs only
// atomic-modesetting only