Fix remote input to work in only TV profile 18/163718/1
authorInHong Han <inhong1.han@samsung.com>
Wed, 13 Dec 2017 02:26:52 +0000 (11:26 +0900)
committerInHong Han <inhong1.han@samsung.com>
Wed, 13 Dec 2017 05:26:34 +0000 (05:26 +0000)
Change-Id: Ib868191d46fa2edf722d7298f6cededde95d3610
(cherry picked from commit 5eb2f5c6f98246cbe1af99f5aad62df5b78cacb3)

ism/extras/efl_panel/isf_panel_efl.cpp
ism/src/isf_remote_client.cpp

index 7afc599..280b0fe 100644 (file)
@@ -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 ();
index bfbb5f0..a3d2062 100644 (file)
@@ -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 ();