[atspi] enable atspi bridge on background apps 05/81005/3
authorPrasoon Singh <prasoon.16@samsung.com>
Thu, 21 Jul 2016 08:52:21 +0000 (14:22 +0530)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Sat, 23 Jul 2016 12:11:10 +0000 (05:11 -0700)
Change-Id: I6d94b28289c4758e39dab0b97d81d449e607bcdc

src/lib/elm_config.c

index b24b041..fff10d7 100644 (file)
@@ -674,7 +674,11 @@ Eina_Bool _elm_config_atspi_mode_get(void)
 void _elm_config_atspi_mode_set(Eina_Bool is_enabled)
 {
    is_enabled = !!is_enabled;
-   if (_elm_config->atspi_mode == is_enabled) return;
+   // TIZEN_ONLY(20160721): enable atspi bridge on background apps
+   Eina_Bool connected = EINA_FALSE;
+   eo_do(_elm_atspi_bridge_get(), connected = elm_obj_atspi_bridge_connected_get());
+   if ((_elm_config->atspi_mode == is_enabled) && (connected == is_enabled)) return;
+   //
    _elm_config->atspi_mode = is_enabled;
 
    if (!is_enabled) _elm_atspi_bridge_shutdown();
@@ -1545,6 +1549,9 @@ _config_flush_get(void)
    _elm_recache();
    _elm_clouseau_reload();
    _elm_config_key_binding_hash();
+   // TIZEN_ONLY(20160721): enable atspi bridge on background apps
+   if (_elm_config) _elm_config_atspi_mode_set(_elm_config->atspi_mode);
+   //
    if (_elm_config) _elm_win_access(_elm_config->access_mode);
    ecore_event_add(ELM_EVENT_CONFIG_ALL_CHANGED, NULL, NULL, NULL);
 }