make sure create shm global object before creating other global objects 70/41270/1 accepted/tizen/mobile/20150626.064831 accepted/tizen/tv/20150626.064909 accepted/tizen/wearable/20150626.064949 submit/tizen/20150626.015417
authorBoram Park <boram1288.park@samsung.com>
Fri, 12 Jun 2015 07:43:50 +0000 (16:43 +0900)
committerBoram Park <boram1288.park@samsung.com>
Fri, 12 Jun 2015 07:43:54 +0000 (16:43 +0900)
Below message happened because 'seat' global object created before 'shm' global object
ERR<4215>: lib/ecore_wayland/ecore_wl_input.c:223 ecore_wl_input_cursor_size_set() safety check failed: input->display->wl.shm == NULL
ERR<4215>: lib/ecore_wayland/ecore_wl_input.c:238 ecore_wl_input_cursor_theme_name_set() safety check failed: input->display->wl.shm == NULL

Change-Id: I393e405910a3e1e397789f0b8ed1906c70115d6b

src/bin/e_comp_wl.c

index eef088840b19bea74e3631f34cb208d313936537..3b15b9bfcaad9a49cdd9521230c8e002e17f154c 100644 (file)
@@ -3032,6 +3032,9 @@ _e_comp_wl_compositor_create(void)
         goto comp_global_err;
      }
 
+   /* initialize shm mechanism */
+   wl_display_init_shm(cdata->wl.disp);
+
 #ifndef HAVE_WAYLAND_ONLY
    _e_comp_wl_cb_randr_change(NULL, 0, NULL);
 #endif
@@ -3091,9 +3094,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);