e_test_event: add focus_skip function using ecore_wl2
authorJunseok, Kim <juns.kim@samsung.com>
Wed, 1 Apr 2020 06:47:19 +0000 (15:47 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Mon, 6 Apr 2020 09:29:11 +0000 (18:29 +0900)
Change-Id: I687f24cac1b8c3c64b3165685335a2192041dc7f

src/e_test_event.cpp
src/e_test_event.h

index b7d527f..c738dcc 100644 (file)
@@ -440,6 +440,21 @@ etRunner::setFocusSkip(etWin *tw, Eina_Bool set)
 }
 
 Eina_Bool
+etRunner::setFocusSkipEcoreWl2(etWin *tw, Eina_Bool set)
+{
+   Ecore_Wl2_Window *wlwin = NULL;
+
+   EINA_SAFETY_ON_NULL_RETURN_VAL(tw, EINA_FALSE);
+
+   wlwin = (Ecore_Wl2_Window *)elm_win_wl_window_get(tw->elm_win);
+   EINA_SAFETY_ON_NULL_RETURN_VAL(wlwin, EINA_FALSE);
+
+   ecore_wl2_window_focus_skip_set(wlwin, set);
+
+   return EINA_TRUE;
+}
+
+Eina_Bool
 etRunner::setZoneRotation(int angle)
 {
    Eldbus_Pending *p = NULL;
index fc4a8be..198ee36 100644 (file)
@@ -137,6 +137,7 @@ public:
    Eina_Bool     setWinNotiLevel(etWin *tw, efl_util_notification_level_e lv);
    efl_util_notification_level_e getWinNotiLevel(etWin *tw);
    Eina_Bool     setFocusSkip(etWin *tw, Eina_Bool set);
+   Eina_Bool     setFocusSkipEcoreWl2(etWin *tw, Eina_Bool set);
    Eina_Bool     setZoneRotation(int angle);
    Eina_Bool     setTCStart();
    Eina_Bool     setTCEnd();