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 <boram1288.park@samsung.com>

Reviewers: stefan_schmidt, gwanglim, raster, zmike, devilhorns

Reviewed By: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3080
This commit is contained in:
Boram Park 2015-09-23 09:15:53 -04:00 committed by Chris Michael
parent 5d8fcab8f7
commit 6d2572efc0
1 changed files with 3 additions and 3 deletions

View File

@ -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);