Change to wl_display_flush()
authorChanggyu Choi <changyu.choi@samsung.com>
Wed, 15 Dec 2021 04:32:53 +0000 (13:32 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 21 Dec 2021 10:23:51 +0000 (19:23 +0900)
The wl_display_roundtrip() is blocked until request done.
Recently, amd removed tizen policy listeners.
So it is unnecessary that synchronize with display server.

Change-Id: I8a9447bd4497182332b2bd8ddba72db6d2e858de
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
src/modules/ui-core/src/app_group_wayland.c

index edbb95c..012895c 100644 (file)
@@ -45,7 +45,7 @@ int _app_group_wayland_lower_window(int wid)
        }
 
        tizen_policy_lower_by_res_id(__context.tizen_policy, wid);
-       wl_display_roundtrip(__context.display);
+       wl_display_flush(__context.display);
 
        return 0;
 }
@@ -59,7 +59,7 @@ int _app_group_wayland_attach_window(int parent_wid, int child_wid)
 
        tizen_policy_set_transient_for(__context.tizen_policy,
                        child_wid, parent_wid);
-       wl_display_roundtrip(__context.display);
+       wl_display_flush(__context.display);
        _W("[__ATTACH__] parent_wid(%d), child_wid(%d)",
                        parent_wid, child_wid);
 
@@ -75,7 +75,7 @@ int _app_group_wayland_attach_window_below(int parent_wid, int child_wid)
 
        tizen_policy_set_transient_for_below(__context.tizen_policy,
                        child_wid, parent_wid);
-       wl_display_roundtrip(__context.display);
+       wl_display_flush(__context.display);
        _W("[__ATTACH__] parent_wid(%d), child_wid(%d)",
                        parent_wid, child_wid);
 
@@ -90,7 +90,7 @@ int _app_group_wayland_detach_window(int child_wid)
        }
 
        tizen_policy_unset_transient_for(__context.tizen_policy, child_wid);
-       wl_display_roundtrip(__context.display);
+       wl_display_flush(__context.display);
        _W("[__DETACH__] child_wid(%d)", child_wid);
 
        return 0;
@@ -105,7 +105,7 @@ int _app_group_wayland_activate_below(int wid, int below_wid)
 
        tizen_policy_activate_below_by_res_id(__context.tizen_policy,
                        below_wid, wid);
-       wl_display_roundtrip(__context.display);
+       wl_display_flush(__context.display);
 
        return 0;
 }
@@ -119,7 +119,7 @@ int _app_group_wayland_activate_above(int wid, int above_wid)
 
        tizen_policy_activate_above_by_res_id(__context.tizen_policy,
                        above_wid, wid);
-       wl_display_roundtrip(__context.display);
+       wl_display_flush(__context.display);
 
        return 0;
 }