[PATCH] compositor-wayland: Create border after creating the OpenGL context.

John Kåre Alsaker john.kare.alsaker at gmail.com
Wed Oct 3 09:02:22 PDT 2012


---
 src/compositor-wayland.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c
index d665641..05f21c2 100644
--- a/src/compositor-wayland.c
+++ b/src/compositor-wayland.c
@@ -843,13 +843,14 @@ wayland_compositor_create(struct wl_display *display,
 	c->base.destroy = wayland_destroy;
 	c->base.restore = wayland_restore;
 
-	create_border(c);
 	if (wayland_compositor_create_output(c, width, height) < 0)
 		goto err_display;
 
 	if (gles2_renderer_init(&c->base) < 0)
 		goto err_display;
 
+	create_border(c);
+
 	loop = wl_display_get_event_loop(c->base.wl_display);
 
 	fd = wl_display_get_fd(c->parent.wl_display, update_event_mask, c);
-- 
1.7.12.2



More information about the wayland-devel mailing list