From: Boram Park Date: Wed, 23 Sep 2015 13:15:53 +0000 (-0400) Subject: Creating wl_shm global object before creating other global objects X-Git-Tag: upstream/0.20.0~247 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d2572efc0d31cb73cf810cd8b901c237b4b7712;p=platform%2Fupstream%2Fenlightenment.git 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 --- diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index bba1aef456..da1bf55fc0 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);