mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-24 01:40:28 -05:00
backend/drm: support hotplug_mode_update connector prop
For connectors that set the hotplug_mode_update prop (usually connectors corresponding to virtualised outputs), ignore modes other than the preferred mode, treat the preferred mode as a custom mode, and do not add it to the output->modes list. When the preferred mode changes, send a request_state event on the output to request for the compositor to change to the new mode.
This commit is contained in:
parent
4abd26ac55
commit
e0b4379ce5
4 changed files with 151 additions and 35 deletions
|
|
@ -18,6 +18,7 @@ union wlr_drm_connector_props {
|
|||
uint32_t path;
|
||||
uint32_t vrr_capable; // not guaranteed to exist
|
||||
uint32_t subconnector; // not guaranteed to exist
|
||||
uint32_t hotplug_mode_update; // not guaranteed to exist
|
||||
|
||||
// atomic-modesetting only
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue