Add X11 backend skeleton

This commit is contained in:
Scott Anderson 2017-09-22 14:58:41 +12:00
parent 6479fb27be
commit a598e6d026
5 changed files with 54 additions and 3 deletions

View file

@ -10,6 +10,7 @@
#include <wlr/backend/drm.h>
#include <wlr/backend/libinput.h>
#include <wlr/backend/wayland.h>
#include <wlr/backend/x11.h>
#include <wlr/backend/multi.h>
#include <wlr/util/log.h>
@ -77,9 +78,9 @@ struct wlr_backend *wlr_backend_autocreate(struct wl_display *display) {
}
}
if (getenv("DISPLAY")) {
wlr_log(L_ERROR, "X11 backend is not implemented"); // TODO
return NULL;
const char *x11_display = getenv("DISPLAY");
if (x11_display) {
return wlr_x11_backend_create(x11_display);
}
// Attempt DRM+libinput