Make widget work. 24/124824/1 accepted/tizen/3.0/common/20170508.153038 accepted/tizen/3.0/ivi/20170508.045859 accepted/tizen/3.0/mobile/20170508.045759 accepted/tizen/3.0/tv/20170508.045802 accepted/tizen/3.0/wearable/20170508.045852 submit/tizen_3.0-common/20170508.080135 submit/tizen_3.0-common/20170508.081301 submit/tizen_3.0-common/20170508.091535 submit/tizen_3.0/20170413.012024 submit/tizen_3.0_common/20170508.091735
authorShinwoo Kim <cinoo.kim@samsung.com>
Wed, 12 Apr 2017 11:39:40 +0000 (20:39 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Wed, 12 Apr 2017 11:47:02 +0000 (20:47 +0900)
The data of '___PLUGID' key is used on accessibility environment.
A widget process window such as 'Alarm Widget' on wearable is using same data.
Becase the widget process could make more than one  window, the data should be
the instance ID, NOT the application ID to separate thoes windows.

Change-Id: I2ee38bc57128b4c6497111b1628183512ed9e0f2

screen_connector_watcher_evas/src/screen_connector_toolkit_evas.c

index 5a78547..ea1d1ad 100644 (file)
@@ -454,7 +454,7 @@ static void __toolkit_update_cb(struct tizen_remote_surface *trs, uint32_t type,
                g_hash_table_insert(toolkit_evas_h->type_h->toolkit_table, toolkit_evas_h->img_tbm, toolkit_evas_h);
 
                /* Set data to use in accessibility */
-               snprintf(plug_id, sizeof(plug_id), "%s:%d", appid, pid);
+               snprintf(plug_id, sizeof(plug_id), "%s:%d", instance_id, pid);
                evas_object_data_set(toolkit_evas_h->img_tbm, "___PLUGID", strdup(plug_id));
                evas_object_event_callback_add(toolkit_evas_h->img_tbm,
                                EVAS_CALLBACK_MOVE, __obj_update_visibility, toolkit_evas_h);