From e13f3f860861af4495619e05be0b1554e32362bc Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 9 Jun 2021 12:03:20 +0200 Subject: backend/drm: handle per-connector hotplug events When a connector ID is specified in a hotplug event, don't scan all connectors. Only scan the connector that has changed. --- include/backend/drm/drm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/backend') diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h index 4b2a1f7c..e045a72e 100644 --- a/include/backend/drm/drm.h +++ b/include/backend/drm/drm.h @@ -147,7 +147,8 @@ struct wlr_drm_backend *get_drm_backend_from_backend( bool check_drm_features(struct wlr_drm_backend *drm); bool init_drm_resources(struct wlr_drm_backend *drm); void finish_drm_resources(struct wlr_drm_backend *drm); -void scan_drm_connectors(struct wlr_drm_backend *state); +void scan_drm_connectors(struct wlr_drm_backend *state, + struct wlr_device_hotplug_event *event); int handle_drm_event(int fd, uint32_t mask, void *data); void destroy_drm_connector(struct wlr_drm_connector *conn); bool drm_connector_commit_state(struct wlr_drm_connector *conn, -- cgit v1.2.3