Creating wl_shm global object before creating other global objects
authorBoram Park <boram1288.park@samsung.com>
Wed, 23 Sep 2015 13:15:53 +0000 (09:15 -0400)
committerChris Michael <cp.michael@samsung.com>
Wed, 23 Sep 2015 13:15:53 +0000 (09:15 -0400)
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

src/bin/e_comp_wl.c

index bba1aef456037c3de139721999e7443439f53c80..da1bf55fc03e2fb2568ccd17d41e9524c5716d25 100644 (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);