summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinwoo Kim <cinoo.kim@samsung.com>2015-09-08 13:41:23 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-09-08 13:50:31 +0900
commite97d5973e5fad88c52323a3c3e2f1b957816136e (patch)
tree44047fbdc27eb94e0d6d0b3e84f3e8522f3c509d
parent0f20a790180e1a5e80a8e90892c4c5c8750c53a4 (diff)
downloadefl-e97d5973e5fad88c52323a3c3e2f1b957816136e.tar.gz
ecore_evas_extn: Fix server rendering after restart
Summary: The server can render, only after the server get the OP_SHOW from the client. However, if the server relaunches while client is running, the server cannot get the OP_SHOW. In this case, the client should send the OP_SHOW, when the server is added. Test Plan: Relaunch a server especially the indicator, while client is running. Reviewers: raster, cedric, Hermet, woohyun, jaehwan, jypark, jpeg Subscribers: cedric, seoz Differential Revision: https://phab.enlightenment.org/D3028 Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
-rw-r--r--src/modules/ecore_evas/engines/extn/ecore_evas_extn.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/ecore_evas/engines/extn/ecore_evas_extn.c b/src/modules/ecore_evas/engines/extn/ecore_evas_extn.c
index 6dd16ba6d3..c8ef291831 100644
--- a/src/modules/ecore_evas/engines/extn/ecore_evas_extn.c
+++ b/src/modules/ecore_evas/engines/extn/ecore_evas_extn.c
@@ -920,6 +920,10 @@ _ipc_server_add(void *data, int type EINA_UNUSED, void *event)
return ECORE_CALLBACK_PASS_ON;
extn = bdata->data;
if (!extn) return ECORE_CALLBACK_PASS_ON;
+ /* If a server relaunches while a client is running, the server cannot get the OP_SHOW.
+ In this case, the client should send the OP_SHOW, when the server is added. */
+ if (ee->visible && extn->ipc.server)
+ ecore_ipc_server_send(extn->ipc.server, MAJOR, OP_SHOW, 0, 0, 0, NULL, 0);
//FIXME: find a way to let app know server there
return ECORE_CALLBACK_PASS_ON;
}