From 4b283f7ec99be6cd030f528e54102846fb1cdfd5 Mon Sep 17 00:00:00 2001 From: Jaehoon Jeong Date: Fri, 3 Jul 2015 16:51:32 +0900 Subject: [PATCH] x11: bug fix Change-Id: Ice9f5e34e250d7e4ef2e7535cc9ea6574d1ebf9e --- x11/src/x11-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x11/src/x11-common.c b/x11/src/x11-common.c index 1ac64ca..e7abf5a 100644 --- a/x11/src/x11-common.c +++ b/x11/src/x11-common.c @@ -219,6 +219,7 @@ pepper_x11_connect(pepper_object_t *compositor, const char *display_name) free(connection); return NULL; } + connection->compositor = compositor; connection->gl_renderer = pepper_gl_renderer_create(connection->compositor, connection->display, "x11"); @@ -234,7 +235,6 @@ pepper_x11_connect(pepper_object_t *compositor, const char *display_name) scr_iter = xcb_setup_roots_iterator(xcb_get_setup(connection->xcb_connection)); connection->screen = scr_iter.data; - connection->compositor = compositor; connection->fd = xcb_get_file_descriptor(connection->xcb_connection); if (display_name) connection->display_name = strdup(display_name); -- 2.7.4