backend/drm: add wlr_drm_backend_monitor

This helper is responsible for listening for new DRM devices and
create new child DRM backends as necessary.
This commit is contained in:
Chris Chamberlain 2021-12-10 21:14:57 +01:00 committed by Simon Ser
parent f6d3efbf4b
commit d8ca494558
6 changed files with 128 additions and 3 deletions

View file

@ -21,6 +21,7 @@
#if WLR_HAS_DRM_BACKEND
#include <wlr/backend/drm.h>
#include "backend/drm/monitor.h"
#endif
#if WLR_HAS_LIBINPUT_BACKEND
@ -375,6 +376,8 @@ struct wlr_backend *wlr_backend_autocreate(struct wl_display *display) {
return NULL;
}
drm_backend_monitor_create(backend, primary_drm, multi->session);
return backend;
#endif