From: Hosang Kim Date: Mon, 13 May 2024 12:02:56 +0000 (+0900) Subject: libaurum: add checking visibility of input window. X-Git-Tag: accepted/tizen/unified/toolchain/20240610.172352~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F67%2F311067%2F1;p=platform%2Fcore%2Fuifw%2Faurum.git libaurum: add checking visibility of input window. Input window(like as keyboard) is always activated. So we can't know input window is showing actually. Change-Id: I8b01fdf38b05ba49cb1ad645f1179eb884219f49 --- diff --git a/libaurum/src/Impl/Accessibility/AtspiAccessibleWatcher.cc b/libaurum/src/Impl/Accessibility/AtspiAccessibleWatcher.cc index eef77e1..ffaa7b5 100644 --- a/libaurum/src/Impl/Accessibility/AtspiAccessibleWatcher.cc +++ b/libaurum/src/Impl/Accessibility/AtspiAccessibleWatcher.cc @@ -399,6 +399,16 @@ void AtspiAccessibleWatcher::onAtspiEvents(AtspiEvent *event, void *watcher) return; } + if (!strncmp(event->type, "object:state-changed:visible", 28)) + { + char *role = AtspiWrapper::Atspi_accessible_get_role_name(event->source, NULL); + if (!strncmp(role, "input method window", 19)) + { + isWindowEventEmitted = true; + } + free(role); + } + if (!strncmp(event->type, "w", 1)) { isWindowEventEmitted = true;