aboutsummaryrefslogtreecommitdiff
path: root/backend/x11/backend.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-12-17 20:48:01 -0500
committerGitHub <noreply@github.com>2017-12-17 20:48:01 -0500
commitf3769a4b1f552b7dc826418e78b88bffe277c2c4 (patch)
treefe07e6a1333f8f96a9075deb26e3ea96519e618b /backend/x11/backend.c
parent10c72f4bf6202bfce89e5a40b03475dd28cd68df (diff)
parentb99d1f4fcca0f8d7b1d2042f51fdefcc73304e6f (diff)
Merge pull request #496 from emersion/headless-backend
Headless backend
Diffstat (limited to 'backend/x11/backend.c')
-rw-r--r--backend/x11/backend.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/backend/x11/backend.c b/backend/x11/backend.c
index c116e78e..a218c589 100644
--- a/backend/x11/backend.c
+++ b/backend/x11/backend.c
@@ -117,7 +117,8 @@ static bool handle_x11_event(struct wlr_x11_backend *x11, xcb_generic_event_t *e
case XCB_CONFIGURE_NOTIFY: {
xcb_configure_notify_event_t *ev = (xcb_configure_notify_event_t *)event;
- wlr_output_update_size(&output->wlr_output, ev->width, ev->height);
+ wlr_output_update_custom_mode(&output->wlr_output, ev->width,
+ ev->height, 0);
// Move the pointer to its new location
xcb_query_pointer_cookie_t cookie =
@@ -310,8 +311,8 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display,
x11->screen = xcb_setup_roots_iterator(xcb_get_setup(x11->xcb_conn)).data;
- if (!wlr_egl_init(&x11->egl, EGL_PLATFORM_X11_KHR,
- x11->screen->root_visual, x11->xlib_conn)) {
+ if (!wlr_egl_init(&x11->egl, EGL_PLATFORM_X11_KHR, x11->xlib_conn, NULL,
+ x11->screen->root_visual)) {
goto error_event;
}