Support feature to show IME in case parent window has focus 90/304890/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 25 Jan 2024 06:56:05 +0000 (15:56 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 25 Jan 2024 07:10:02 +0000 (16:10 +0900)
Change-Id: I7ac79795a4fe47ef068a7512ed1d1fabcdab3fd8
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/e_mod_input_panel.c
src/e_mod_main.c

index d667313..b35ecc5 100644 (file)
@@ -270,7 +270,8 @@ _e_input_panel_surface_show(E_Input_Panel_Surface *ips)
         e_input_panel_wait_update_set(EINA_FALSE);
         if (ips->ec && ips->ec->parent)
           {
-             if (ips->ec->parent == focused_ec)
+             LOGI("focused_ec:%p, ec->parent:%p, ec->parent->parent: %p\n", focused_ec, ips->ec->parent, ips->ec->parent->parent);
+             if (ips->ec->parent == focused_ec || ips->ec->parent->parent == focused_ec)
                {
                   e_policy_conformant_part_update(ips->ec);
                   e_input_panel_visibility_change(EINA_TRUE);
index c58a90c..d655d35 100644 (file)
@@ -1243,7 +1243,6 @@ _e_text_input_cb_activate(struct wl_client *client, struct wl_resource *resource
    E_Client *ec = NULL;
 
    EINA_SAFETY_ON_NULL_GOTO(resource, err);
-   EINA_SAFETY_ON_NULL_GOTO(seat, err);
    EINA_SAFETY_ON_NULL_GOTO(g_input_method, err);
    EINA_SAFETY_ON_NULL_GOTO(g_input_method->resource, err);