[ATSPI] Calculate Window state in atspi tree 80/263280/6
authorBartlomiej Grzelewski <b.grzelewski@samsung.com>
Mon, 30 Aug 2021 13:05:14 +0000 (15:05 +0200)
committerArtur Świgoń <a.swigon@samsung.com>
Tue, 31 Aug 2021 10:45:30 +0000 (12:45 +0200)
Window state in atspi tree should not be
ACTIVE/VISIBLE when window is hidden or
minimalized.

Change-Id: I2fe1e9d38c4e9fb55d8c25b18a1dc154bca0293b

dali/devel-api/adaptor-framework/accessibility-impl.cpp

index e7b72cb..3a96638 100644 (file)
@@ -736,11 +736,13 @@ public:
     States state;
     if(mRoot)
     {
+      auto window = Dali::DevelWindow::Get(Self());
+      auto visible = window.IsVisible();
       state[State::ENABLED]   = true;
       state[State::SENSITIVE] = true;
-      state[State::SHOWING]   = true;
+      state[State::SHOWING]   = visible;
       state[State::VISIBLE]   = true;
-      state[State::ACTIVE]    = true;
+      state[State::ACTIVE]    = visible;
     }
     else
     {