From 4ad6e6c2983216e91cec9987191c1099e8a108a8 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 23 Nov 2023 14:53:06 +0100 Subject: backend: destroy multi backend when primary backend is This makes it easy for compositors to handle situations where the DRM or libinput backend becomes unavailable. Compositors can listen the destroy event of the multi backend returned by wlr_backend_autocreate() and decide what to do. --- include/wlr/backend.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/wlr/backend.h b/include/wlr/backend.h index 9a8a2d87..24d8c6b5 100644 --- a/include/wlr/backend.h +++ b/include/wlr/backend.h @@ -37,6 +37,9 @@ struct wlr_backend { * * If session_ptr is not NULL, it's populated with the session which has been * created with the backend, if any. + * + * The multi-backend will be destroyed if one of the primary underlying + * backends is destroyed (e.g. if the primary DRM device is unplugged). */ struct wlr_backend *wlr_backend_autocreate(struct wl_display *display, struct wlr_session **session_ptr); -- cgit v1.2.3