From 297d70e0d7e72512492af53c77c0ca2725926ef6 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Fri, 15 Mar 2024 14:56:35 +0900 Subject: [PATCH] Use wl_display_flush() To avoid blocking main thread, app-core uses wl_display_flush() instead of wl_display_roundtrip(). Change-Id: I06ad4661858e1b6839ccb35e91e515dc94899508 Signed-off-by: Hwankyu Jhun --- tizen-cpp/app-core-ui-cpp/wayland_handler_private.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tizen-cpp/app-core-ui-cpp/wayland_handler_private.cc b/tizen-cpp/app-core-ui-cpp/wayland_handler_private.cc index 3d89b70..e1d3ff6 100644 --- a/tizen-cpp/app-core-ui-cpp/wayland_handler_private.cc +++ b/tizen-cpp/app-core-ui-cpp/wayland_handler_private.cc @@ -88,7 +88,7 @@ void WaylandHandler::SetBgState() { return; tizen_policy_set_background_state(tz_policy_, getpid()); - wl_display_roundtrip(dsp_); + wl_display_flush(dsp_); _D("Set Background State"); } @@ -97,7 +97,7 @@ void WaylandHandler::UnsetBgState() { return; tizen_policy_unset_background_state(tz_policy_, getpid()); - wl_display_roundtrip(dsp_); + wl_display_flush(dsp_); _D("Unset Background State"); } @@ -106,7 +106,7 @@ void WaylandHandler::SetAppId(const std::string& app_id) { return; tizen_policy_set_appid(tz_policy_, getpid(), app_id.c_str()); - wl_display_roundtrip(dsp_); + wl_display_flush(dsp_); _D("Set AppId: %s", app_id.c_str()); } -- 2.7.4