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