e_keyrouter: fix to the issue of printing incorrect surface info in log 84/323784/1
authorduna.oh <duna.oh@samsung.com>
Wed, 7 May 2025 07:46:04 +0000 (16:46 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Wed, 7 May 2025 09:57:16 +0000 (18:57 +0900)
refer to the previous commit.
-----------------------------
commit aacadce0675a12a9af2c305b0259d11082bfd7a9
Author: SooChan Lim <sc1.lim@samsung.com>
Date:   Wed Dec 18 09:12:34 2024 +0900

    e_keyrouter_events: use _e_keyrouter_log_key_event

    refactoring the log printing using the common function

Change-Id: Ibd6a97d6917b6925ac17579abc8983a6ec87edc0

src/bin/inputmgr/e_keyrouter_event.c

index 5d5a43ad952220671a895cae81501aaa219e4a15..4edfb84fea2649ed7caf64c504212494e3101ac6 100644 (file)
@@ -553,10 +553,10 @@ _e_keyrouter_send_key_events_focus(int type, struct wl_resource *surface_focus,
 
              _e_keyrouter_log_key_event(key_event_log_type, "FOCUS HOOK",
                                         ev->keycode,
-                                        EINA_TRUE,
+                                        EINA_FALSE,
                                         E_KRT_CSTAT_ALIVE,
-                                        surface_focus,
-                                        wc);
+                                        key_data->surface,
+                                        key_data->client);
 
              return EINA_TRUE;
           }
@@ -569,7 +569,7 @@ _e_keyrouter_send_key_events_focus(int type, struct wl_resource *surface_focus,
 
    _e_keyrouter_send_key_event(type, surface_focus, NULL,ev, dev, EINA_TRUE, TIZEN_KEYROUTER_MODE_SHARED);
 
-   _e_keyrouter_log_key_event(key_event_log_type, "FOCUS HOOK",
+   _e_keyrouter_log_key_event(key_event_log_type, "FOCUS DIRECT",
                               ev->keycode,
                               EINA_TRUE,
                               E_KRT_CSTAT_ALIVE,