discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=037068112f649573071aadfb22d30c4647ecd17e

commit 037068112f649573071aadfb22d30c4647ecd17e
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Wed Jan 17 17:07:32 2018 -0500

    flush injected gadget loader protocol connections after calling methods
    
    ensure that gadget-specific methods trigger a flush instead of relying
    on a render to occur
---
 src/bin/e_gadget_loader.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/bin/e_gadget_loader.c b/src/bin/e_gadget_loader.c
index 52a098250..ac8b8d62f 100644
--- a/src/bin/e_gadget_loader.c
+++ b/src/bin/e_gadget_loader.c
@@ -87,6 +87,7 @@ _gadget_global_bind(Ecore_Wl2_Display *d, uint32_t id)
    eina_hash_add(gadget_globals, &d, gadget_global);
    EINA_LIST_FOREACH(tooltips, l, tt)
      e_gadget_set_tooltip(gadget_global, 
ecore_wl2_window_surface_get(elm_win_wl_window_get(tt)));
+   ecore_wl2_display_flush(d);
 }
 
 static void
@@ -94,6 +95,7 @@ _ar_global_bind(Ecore_Wl2_Display *d, uint32_t id)
 {
    struct action_route *ar_global = 
wl_registry_bind(ecore_wl2_display_registry_get(d), id, 
&action_route_interface, 1);
    eina_hash_add(ar_globals, &d, ar_global);
+   ecore_wl2_display_flush(d);
 }
 
 static Eina_Bool
@@ -142,6 +144,7 @@ _ar_bind_activate(void *data, Evas_Object *obj EINA_UNUSED, 
void *event_info)
 
    if (params && (!params[0])) params = NULL;
    action_route_bind_activate(ga->ar_bind, params);
+   ecore_wl2_display_flush(ga->d);
 }
 
 static void
@@ -209,6 +212,7 @@ uriopen_request(void *data, Evas_Object *obj EINA_UNUSED, 
void *event_info)
    struct e_gadget *gadget_global = eina_hash_find(gadget_globals, &d);
 
    e_gadget_open_uri(gadget_global, uri);
+   ecore_wl2_display_flush(d);
 }
 
 static void

-- 


Reply via email to