From: InHong Han Date: Wed, 13 Dec 2017 02:26:52 +0000 (+0900) Subject: Fix remote input to work in only TV profile X-Git-Tag: accepted/tizen/unified/20171219.183917~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2291741a443fefcb727bff8b62ea4369e211047a;p=platform%2Fcore%2Fuifw%2Fisf.git Fix remote input to work in only TV profile Change-Id: Ib868191d46fa2edf722d7298f6cededde95d3610 (cherry picked from commit 5eb2f5c6f98246cbe1af99f5aad62df5b78cacb3) --- diff --git a/ism/extras/efl_panel/isf_panel_efl.cpp b/ism/extras/efl_panel/isf_panel_efl.cpp index 7afc599..280b0fe 100644 --- a/ism/extras/efl_panel/isf_panel_efl.cpp +++ b/ism/extras/efl_panel/isf_panel_efl.cpp @@ -7780,18 +7780,18 @@ int main (int argc, char *argv []) LOGW ("bt_hid_host_initialize failed"); #endif -#if ENABLE_REMOTE_INPUT - launch_remote_input = scim_global_config_read (String (SCIM_GLOBAL_CONFIG_LAUNCH_REMOTE_INPUT), launch_remote_input); + if (_TV) { + launch_remote_input = scim_global_config_read (String (SCIM_GLOBAL_CONFIG_LAUNCH_REMOTE_INPUT), launch_remote_input); - /* Create remote input */ - if (launch_remote_input) { - LOGD("remote input start"); - remote_input_impl = new Remote_Input(); - if (remote_input_impl) { - remote_input_impl->init(_info_manager); - } + /* Create remote input */ + if (launch_remote_input) { + LOGD("remote input start"); + remote_input_impl = new Remote_Input(); + if (remote_input_impl) { + remote_input_impl->init(_info_manager); + } + } } -#endif #if ISF_BUILD_CANDIDATE_UI _system_scale = elm_config_scale_get (); diff --git a/ism/src/isf_remote_client.cpp b/ism/src/isf_remote_client.cpp index bfbb5f0..a3d2062 100644 --- a/ism/src/isf_remote_client.cpp +++ b/ism/src/isf_remote_client.cpp @@ -161,10 +161,6 @@ public: int open_connection (void) { String display; -#ifndef ENABLE_REMOTE_INPUT - const char *p = getenv ("DISPLAY"); - if (p) display = String (p); -#endif SocketAddress addr (scim_get_default_panel_socket_address (display)); if (m_socket_remoteinput2panel.is_connected ()) close_connection ();