From 6d2572efc0d31cb73cf810cd8b901c237b4b7712 Mon Sep 17 00:00:00 2001 From: Boram Park Date: Wed, 23 Sep 2015 09:15:53 -0400 Subject: [PATCH] Creating wl_shm global object before creating other global objects Summary: It's more useful for client to bind wl_shm before receiving other global object's events. Then, App can quickly prepare some buffers. i.e. cursor, etc. Signed-off-by: Boram Park Reviewers: stefan_schmidt, gwanglim, raster, zmike, devilhorns Reviewed By: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3080 --- src/bin/e_comp_wl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index bba1aef45..da1bf55fc 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -2536,6 +2536,9 @@ _e_comp_wl_compositor_create(void) goto comp_global_err; } + /* initialize shm mechanism */ + wl_display_init_shm(cdata->wl.disp); + cdata->screenshooter.global = wl_global_create(cdata->wl.disp, &screenshooter_interface, 1, e_comp, _e_comp_wl_screenshooter_cb_bind); @@ -2600,9 +2603,6 @@ _e_comp_wl_compositor_create(void) } #endif - /* initialize shm mechanism */ - wl_display_init_shm(cdata->wl.disp); - /* get the wayland display loop */ cdata->wl.loop = wl_display_get_event_loop(cdata->wl.disp);