Check hints before setting app info 98/317598/1
authorHwankyu Jhun <h.jhun@samsung.com>
Sun, 5 Jan 2025 22:43:07 +0000 (07:43 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Sun, 5 Jan 2025 22:43:07 +0000 (07:43 +0900)
When the hint is not window id control, the application core skips
setting the app info for display server. This patch reduces unnecessary
wayland initialization.

Change-Id: Ibfb90b115054ea416b7e6456e2faa1a97506196c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
tizen-cpp/app-core-ui-cpp/app_core_ui_base.cc

index 6f007bc24eb40f56205642f9cf507c35afebfc97..f4855c36bca4e69cc819692fdecdec2d3dd864d1 100644 (file)
@@ -518,10 +518,10 @@ void AppCoreUiBase::DoRun(int argc, char** argv) {
   }
 
   if (!impl_->fast_launch_) {
-    if (impl_->hint_ & HINT_WINDOW_ID_CONTROL)
+    if (impl_->hint_ & HINT_WINDOW_ID_CONTROL) {
       impl_->SetAppId();
-
-    impl_->SetAppInfo();
+      impl_->SetAppInfo();
+    }
   } else {
     _I("Skip wayland init for fast-launched app");
   }