}
AtspiAccessiblePtr root, keyboardRoot;
UIElement::ApplicationCategory application = UIElement::ApplicationCategory::OTHER;
- static const std::string keyboardRootName1 = "ise-default";
- // TODO: remove keyboardRootName2, once app name patch will be merged and on image
- static const std::string keyboardRootName2 = "";
+ static const std::string keyboardRootName = "ise-default";
static const std::string homescreenRootName = "homescreen-efl";
for (auto pid : wins.all.pids) {
DEBUG("checking pid %d", pid);
auto ptr = wins.all.pidToAtspi[pid];
auto name = wins.all.names[ptr];
- if (pid == wins.all.ourPid && !wins.all.weHaveChildren) continue;
- if (name == keyboardRootName1 || name == keyboardRootName2) {
+ if (pid == wins.all.ourPid && !wins.all.weHaveChildren)
+ continue;
+ if (name == keyboardRootName) {
keyboardRoot = std::move(ptr);
- } else if (!root) {
+ continue;
+ }
+ if (!root) {
root = std::move(ptr);
if (name == homescreenRootName)
application = UIElement::ApplicationCategory::HOMESCREEN;