[atspi] fix - socket proxy should be created before bridge is connected 07/95207/2
authorShinwoo Kim <cinoo.kim@samsung.com>
Wed, 2 Nov 2016 11:50:57 +0000 (20:50 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Fri, 4 Nov 2016 00:31:52 +0000 (17:31 -0700)
Change-Id: I4bef45e97205eab1d125ab70fc037b2b067a2520

src/lib/elm_win.c

index 2fe0ffd..36d2f5b 100644 (file)
@@ -1804,8 +1804,12 @@ _elm_win_evas_object_smart_show(Eo *obj, Elm_Win_Data *sd)
         elm_interface_atspi_window_created_signal_emit(obj);
         if (bridge)
            elm_interface_atspi_accessible_children_changed_added_signal_emit(elm_atspi_bridge_root_get(bridge), obj);
+     }
 
-        // TIZEN_ONLY(20160705) - enable atspi_proxy to work
+   // TIZEN_ONLY(20160705) - enable atspi_proxy to work
+   /* _elm_atspi_enabled() is not necessary, because it could be disconnected at this point */
+   if (_elm_config->atspi_mode)
+     {
         const char *plug_id_2;
         if ((plug_id_2 = evas_object_data_get(obj, "___PLUGID")) != NULL)
           {
@@ -1818,8 +1822,8 @@ _elm_win_evas_object_smart_show(Eo *obj, Elm_Win_Data *sd)
                   free(svcnum);
                }
           }
-        //
      }
+   //
 
    if (do_eval)
      {