ecore_wl2_window: add fallback code for ecore_wl2_window_transient_parent_set 66/263466/2
authorDoyoun Kang <doyoun.kang@samsung.com>
Fri, 3 Sep 2021 04:05:12 +0000 (13:05 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Mon, 6 Sep 2021 03:41:17 +0000 (12:41 +0900)
If the tizen_policy version is not supported tizen_policy_set_parent_with_below, then
ecore_wl2_window_transient_parent_set calls the ecore_wl2_window_parent_set instead.

@tizen_only

Change-Id: I83280f30c59e0eadab63daaa043910c5b9f7f5bd
Signed-off-by: Doyoun Kang <doyoun.kang@samsung.com>
src/lib/ecore_wl2/ecore_wl2_window.c

index 075470e..3e4e096 100644 (file)
@@ -1663,6 +1663,7 @@ ecore_wl2_window_transient_parent_set(Ecore_Wl2_Window *window, Ecore_Wl2_Window
      {
         ERR("ecore_wl2_window_transient_parent_set is not supported in this version:%d (required version:%d)",
             ver, TIZEN_POLICY_SET_PARENT_WITH_BELOW_SINCE_VERSION);
+        ecore_wl2_window_parent_set(window, parent);
         return;
      }