e_test_helper: Added Focused variable to FocusChanged signal 64/257564/1
authorJunseok, Kim <juns.kim@samsung.com>
Wed, 21 Apr 2021 05:25:36 +0000 (14:25 +0900)
committerJunseok, Kim <juns.kim@samsung.com>
Tue, 27 Apr 2021 12:51:52 +0000 (21:51 +0900)
Change-Id: If9ea7823bbe1489ea0b23a6096256b4c7aaa469b
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
src/bin/e_test_helper.c

index e957a96..e8f30ce 100644 (file)
@@ -101,7 +101,7 @@ static const Eldbus_Signal signals[] = {
      [E_TEST_HELPER_SIGNAL_FOCUS_CHANGED] =
        {
           "FocusChanged",
-          ELDBUS_ARGS({"u", "window id of focus changed"}),
+          ELDBUS_ARGS({"ub", "window id, focus state"}),
           0
        },
      [E_TEST_HELPER_SIGNAL_RENDER] =
@@ -1397,7 +1397,7 @@ _e_test_helper_cb_client_rotation_end(void *data EINA_UNUSED, int type EINA_UNUS
 }
 
 static Eina_Bool
-_e_test_helper_cb_client_focus_in(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
+_e_test_helper_cb_client_focus_changed(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
 {
    E_Event_Client *ev = event;
    E_Client *ec = NULL;
@@ -1415,7 +1415,7 @@ _e_test_helper_cb_client_focus_in(void *data EINA_UNUSED, int type EINA_UNUSED,
    if (win)
      {
         sig = eldbus_service_signal_new(th_data->iface, E_TEST_HELPER_SIGNAL_FOCUS_CHANGED);
-        eldbus_message_arguments_append(sig, "u", win);
+        eldbus_message_arguments_append(sig, "ub", win, ec->focused);
         eldbus_service_signal_send(th_data->iface, sig);
      }
 
@@ -1722,7 +1722,9 @@ e_test_helper_init(void)
    E_LIST_HANDLER_APPEND(th_data->hdlrs, E_EVENT_CLIENT_ROTATION_CHANGE_END,
                          _e_test_helper_cb_client_rotation_end, NULL);
    E_LIST_HANDLER_APPEND(th_data->hdlrs, E_EVENT_CLIENT_FOCUS_IN,
-                         _e_test_helper_cb_client_focus_in, NULL);
+                         _e_test_helper_cb_client_focus_changed, NULL);
+   E_LIST_HANDLER_APPEND(th_data->hdlrs, E_EVENT_CLIENT_FOCUS_OUT,
+                         _e_test_helper_cb_client_focus_changed, NULL);
    E_LIST_HANDLER_APPEND(th_data->hdlrs, E_EVENT_COMP_OBJECT_IMG_RENDER,
                           _e_test_helper_cb_img_render, NULL);