Revert "Revert part of 668850643f7"
authorŁukasz Stelmach <l.stelmach@samsung.com>
Thu, 28 Jan 2016 11:59:21 +0000 (12:59 +0100)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Fri, 29 Jan 2016 15:15:54 +0000 (16:15 +0100)
This reverts commit 40ec34460085d07c8579d41a0dc4d89670b00964.

src/bin/e_comp_wl.c

index cebb77d4956323d7cc49a98ff4ee7b72830a71a0..88e4b7e6170171372647bd29d16b72725bd70670 100644 (file)
@@ -4469,6 +4469,17 @@ e_comp_wl_init(void)
         return EINA_FALSE;
      }
 
+   wl_event_loop_dispatch(e_comp->wl_comp_data->wl.loop, -1); //server calls wl_client_create()
+
+   ecore_wl_flush(); // client sendmsg wl_display.get_registry request
+   wl_event_loop_dispatch(e_comp->wl_comp_data->wl.loop, -1); // server calls display_get_registry()
+   wl_display_flush_clients(e_comp->wl_comp_data->wl.disp); // server flushes wl_registry.global events
+
+   ecore_wl_display_iterate(); // client handles global events and make 'bind' requests to each global interfaces
+
+   ecore_wl_flush(); // client sendmsg wl_registry.bind requests
+   wl_event_loop_dispatch(e_comp->wl_comp_data->wl.loop, -1); // server calls registry_bind() using given interfaces' name
+
    /* create hash to store clients */
    /* clients_win_hash = eina_hash_int64_new(NULL); */
    clients_buffer_hash = eina_hash_pointer_new(NULL);