mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-26 01:40:35 -05:00
Merge branch 'hotplug_mode_update' into 'master'
backend/drm: Add support for hotplug_mode_update connector property See merge request wlroots/wlroots!4891
This commit is contained in:
commit
60c7e269ce
3 changed files with 10 additions and 0 deletions
|
|
@ -1847,6 +1847,14 @@ void scan_drm_connectors(struct wlr_drm_backend *drm,
|
|||
drm_conn->connection != DRM_MODE_CONNECTED) {
|
||||
wlr_log(WLR_INFO, "'%s' disconnected", wlr_conn->name);
|
||||
disconnect_drm_connector(wlr_conn);
|
||||
} else if (wlr_conn->status == DRM_MODE_CONNECTED &&
|
||||
drm_conn->connection == DRM_MODE_CONNECTED
|
||||
&& wlr_conn->props.hotplug_mode_update > 0)
|
||||
{
|
||||
wlr_log(WLR_INFO, "'%s' reconnected", wlr_conn->name);
|
||||
disconnect_drm_connector(wlr_conn);
|
||||
connect_drm_connector(wlr_conn, drm_conn);
|
||||
new_outputs[new_outputs_len++] = wlr_conn;
|
||||
}
|
||||
|
||||
drmModeFreeConnector(drm_conn);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue