Make widget work. 39/124839/1
authorShinwoo Kim <cinoo.kim@samsung.com>
Wed, 12 Apr 2017 11:39:40 +0000 (20:39 +0900)
committerJunghoon Park <jh9216.park@samsung.com>
Wed, 12 Apr 2017 12:54:56 +0000 (05:54 -0700)
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);