aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-06-09 12:03:20 +0200
committerSimon Ser <contact@emersion.fr>2021-11-02 13:36:43 +0100
commite13f3f860861af4495619e05be0b1554e32362bc (patch)
tree085de17527394864385dabb3afcd788ce8713187 /include
parent2ff4e113e237d9f461e41b994db6c53b5a66a3d0 (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/backend/drm/drm.h3
1 files changed, 2 insertions, 1 deletions
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,