mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-10 05:34:08 -04: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
|
|
@ -24,6 +24,7 @@ static const struct prop_info connector_info[] = {
|
|||
{ "DPMS", INDEX(dpms) },
|
||||
{ "EDID", INDEX(edid) },
|
||||
{ "PATH", INDEX(path) },
|
||||
{ "hotplug_mode_update", INDEX(hotplug_mode_update) },
|
||||
{ "link-status", INDEX(link_status) },
|
||||
{ "subconnector", INDEX(subconnector) },
|
||||
{ "vrr_capable", INDEX(vrr_capable) },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue