|
|
@ -1739,7 +1739,7 @@ static const char default_seat[] = "seat0"; |
|
|
|
static struct weston_compositor * |
|
|
|
static struct weston_compositor * |
|
|
|
drm_compositor_create(struct wl_display *display, |
|
|
|
drm_compositor_create(struct wl_display *display, |
|
|
|
int connector, const char *seat, int tty, |
|
|
|
int connector, const char *seat, int tty, |
|
|
|
int argc, char *argv[]) |
|
|
|
int argc, char *argv[], const char *config_file) |
|
|
|
{ |
|
|
|
{ |
|
|
|
struct drm_compositor *ec; |
|
|
|
struct drm_compositor *ec; |
|
|
|
struct udev_enumerate *e; |
|
|
|
struct udev_enumerate *e; |
|
|
@ -1805,7 +1805,8 @@ drm_compositor_create(struct wl_display *display, |
|
|
|
ec->prev_state = WESTON_COMPOSITOR_ACTIVE; |
|
|
|
ec->prev_state = WESTON_COMPOSITOR_ACTIVE; |
|
|
|
|
|
|
|
|
|
|
|
/* Can't init base class until we have a current egl context */ |
|
|
|
/* Can't init base class until we have a current egl context */ |
|
|
|
if (weston_compositor_init(&ec->base, display, argc, argv) < 0) |
|
|
|
if (weston_compositor_init(&ec->base, display, argc, argv, |
|
|
|
|
|
|
|
config_file) < 0) |
|
|
|
return NULL; |
|
|
|
return NULL; |
|
|
|
|
|
|
|
|
|
|
|
for (key = KEY_F1; key < KEY_F9; key++) |
|
|
|
for (key = KEY_F1; key < KEY_F9; key++) |
|
|
@ -1853,7 +1854,8 @@ drm_compositor_create(struct wl_display *display, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
WL_EXPORT struct weston_compositor * |
|
|
|
WL_EXPORT struct weston_compositor * |
|
|
|
backend_init(struct wl_display *display, int argc, char *argv[]) |
|
|
|
backend_init(struct wl_display *display, int argc, char *argv[], |
|
|
|
|
|
|
|
const char *config_file) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int connector = 0, tty = 0; |
|
|
|
int connector = 0, tty = 0; |
|
|
|
const char *seat = default_seat; |
|
|
|
const char *seat = default_seat; |
|
|
@ -1866,5 +1868,6 @@ backend_init(struct wl_display *display, int argc, char *argv[]) |
|
|
|
|
|
|
|
|
|
|
|
parse_options(drm_options, ARRAY_LENGTH(drm_options), argc, argv); |
|
|
|
parse_options(drm_options, ARRAY_LENGTH(drm_options), argc, argv); |
|
|
|
|
|
|
|
|
|
|
|
return drm_compositor_create(display, connector, seat, tty, argc, argv); |
|
|
|
return drm_compositor_create(display, connector, seat, tty, argc, argv, |
|
|
|
|
|
|
|
config_file); |
|
|
|
} |
|
|
|
} |
|
|
|