Re-enabled transient_for in TV profile 43/90443/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Fri, 30 Sep 2016 04:15:21 +0000 (13:15 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Fri, 30 Sep 2016 04:16:19 +0000 (13:16 +0900)
Change-Id: I39bd5d18c389501ffafadfb7d98e08ca40eb202b

src/e_mod_input_panel.c
src/e_mod_main.c
src/e_mod_main.h

index 9610aa38d491a1e6ab1cf1c96247fe886e6ebdda..1a8a454e45555ab3eb0bb3439f340500281f7989 100644 (file)
@@ -730,7 +730,6 @@ e_input_panel_wait_update_set(Eina_Bool wait_update)
 #endif
 }
 
-#ifndef _TV
 EINTERN void
 e_input_panel_transient_for_set(E_Client *parent)
 {
@@ -783,4 +782,3 @@ e_input_panel_transient_for_set(E_Client *parent)
         EC_CHANGED(child);
      }
 }
-#endif
\ No newline at end of file
index 9a753f8b55cbeb14293dba8000a603b7d0b4a49e..4fc2a11e3fc048ebbfd05a8a2e1a67088c461f5b 100644 (file)
@@ -107,14 +107,10 @@ static Eina_Bool g_keyboard_mode_engligh = EINA_TRUE;
 static Ecore_Timer *g_timer_will_hide  = NULL;
 static enum _E_Input_Panel_State g_input_panel_state = E_INPUT_PANEL_STATE_DID_HIDE;
 static E_Client *transient_for_ec = NULL;
-
-#ifndef _TV
 static Eina_List *hooks_ec = NULL;
-#endif
 
 const int WILL_HIDE_TIMER_INTERVAL = 1.0f;
 
-#ifndef _TV
 #undef E_CLIENT_HOOK_APPEND
 #define E_CLIENT_HOOK_APPEND(l, t, cb, d) \
   do                                      \
@@ -125,7 +121,6 @@ const int WILL_HIDE_TIMER_INTERVAL = 1.0f;
        l = eina_list_append(l, _h);       \
     }                                     \
   while (0)
-#endif
 
 static struct _E_Input_Method_Keymap_Info g_keymap_info[] = {
    {"en_US", "evdev", "pc105", "us"},
@@ -1027,10 +1022,8 @@ _e_text_input_cb_activate(struct wl_client *client, struct wl_resource *resource
    EINA_SAFETY_ON_TRUE_GOTO(e_object_is_del(E_OBJECT(ec)), err);
    transient_for_ec = ec;
 
-#ifndef _TV
    e_input_panel_transient_for_set(transient_for_ec);
    WTI_LOG("TRANSIENT_FOR::Application window's E_Client* value : %p\n", transient_for_ec);
-#endif
 
    text_input = wl_resource_get_user_data(resource);
    g_text_input = text_input;
@@ -1228,18 +1221,15 @@ _e_text_input_cb_input_panel_show(struct wl_client *client, struct wl_resource *
    if (text_input->resource)
      wl_text_input_send_input_panel_state(text_input->resource,
                                           WL_TEXT_INPUT_INPUT_PANEL_STATE_SHOW);
-#ifndef _TV
+
    e_input_panel_transient_for_set(transient_for_ec);
-#endif
 }
 
 static void
 _e_text_input_cb_input_panel_hide(struct wl_client *client, struct wl_resource *resource)
 {
    _input_panel_hide(client, resource, EINA_FALSE);
-#ifndef _TV
    e_input_panel_transient_for_set(NULL);
-#endif
 }
 
 static void
@@ -1921,7 +1911,6 @@ _e_text_input_method_context_cb_client_resize(void *data EINA_UNUSED, int type E
    return ECORE_CALLBACK_PASS_ON;
 }
 
-#ifndef _TV
 static void
 _pol_cb_hook_client_del(void *d EINA_UNUSED, E_Client *ec)
 {
@@ -1934,7 +1923,6 @@ _pol_cb_hook_client_del(void *d EINA_UNUSED, E_Client *ec)
         WTI_LOG("TRANSIENT_FOR::Reset transient_for_ec to NULL\n");
      }
 }
-#endif
 
 E_API void *
 e_modapi_init(E_Module *m)
@@ -1969,9 +1957,7 @@ e_modapi_init(E_Module *m)
    if (!eeze_udev_watch_hander)
      goto err;
 
-#ifndef _TV
    E_CLIENT_HOOK_APPEND(hooks_ec, E_CLIENT_HOOK_DEL, _pol_cb_hook_client_del, NULL);
-#endif
 
    return m;
 err:
@@ -1983,9 +1969,7 @@ E_API int
 e_modapi_shutdown(E_Module *m EINA_UNUSED)
 {
    E_FREE_LIST(handlers, ecore_event_handler_del);
-#ifndef _TV
    E_FREE_LIST(hooks_ec, e_client_hook_del);
-#endif
 
    if (g_timer_will_hide)
      {
index 2dc93f8f4e583085bdeac6a0a12571674eedf326..2f1e687645e4496287865dbf4c0c17fc12367804 100644 (file)
@@ -8,8 +8,6 @@ void        e_input_panel_shutdown(void);
 void        e_input_panel_visibility_change(Eina_Bool visible);
 Eina_Bool   e_input_panel_client_find(E_Client *ec);
 EINTERN void   e_input_panel_wait_update_set(Eina_Bool wait_update);
-#ifndef _TV
 EINTERN void   e_input_panel_transient_for_set(E_Client *parent);
-#endif
 
 #endif