Emit WindowHidden event to atspi if window is invisible on accesbility enabled 80/310780/1
authorYoungsun Suh <youngsun.suh@samsung.com>
Wed, 8 May 2024 04:33:58 +0000 (13:33 +0900)
committerYoungsun Suh <youngsun.suh@samsung.com>
Wed, 8 May 2024 05:24:03 +0000 (14:24 +0900)
Change-Id: I41539464d24a9b5a69476eb495c4c0115a1d8605

dali/internal/window-system/common/window-impl.cpp

index c43ae91..b67e647 100644 (file)
@@ -1211,17 +1211,19 @@ void Window::OnAccessibilityEnabled()
     mIsEmittedWindowCreatedEvent = true;
   }
 
-  if(!mVisible || mIconified)
+  if(IsVisible())
   {
-    return;
-  }
+    bridge->WindowShown(handle);
 
-  bridge->WindowShown(handle);
-
-  if(mFocused)
+    if(mFocused)
+    {
+      DALI_LOG_RELEASE_INFO("Window (%p), WinId (%d), Emit Accessbility Window Focused Event\n", this, mNativeWindowId);
+      bridge->WindowFocused(handle);
+    }
+  }
+  else
   {
-    DALI_LOG_RELEASE_INFO("Window (%p), WinId (%d), Emit Accessbility Window Focused Event\n", this, mNativeWindowId);
-    bridge->WindowFocused(handle);
+    bridge->WindowHidden(handle);
   }
 }