diff options
author | Simon Ser <contact@emersion.fr> | 2023-11-23 14:53:06 +0100 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2024-01-25 14:58:00 +0300 |
commit | 4ad6e6c2983216e91cec9987191c1099e8a108a8 (patch) | |
tree | 72ddb3b55ed6ba12a6d039e04792e0fbada34364 /include/wlr | |
parent | be0b7845f74fd2f68e2b20802e39b81aa64cbd3e (diff) |
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.
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/backend.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |