From: Hosang Kim Date: Fri, 14 Jun 2024 10:06:01 +0000 (+0900) Subject: aurum: Check app name for Quickpanel, Keyboard, volume app. X-Git-Tag: accepted/tizen/unified/20240703.100051~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6bd64be8fd79e323a5b8cce8426e72a79697bce8;p=platform%2Fcore%2Fuifw%2Faurum.git aurum: Check app name for Quickpanel, Keyboard, volume app. Change-Id: Ic93b0e7056954dd1b72765e63012419ca8fe02cf --- diff --git a/libaurum/src/Impl/Accessibility/AtspiAccessibleWatcher.cc b/libaurum/src/Impl/Accessibility/AtspiAccessibleWatcher.cc index ffaa7b5..26e30d4 100644 --- a/libaurum/src/Impl/Accessibility/AtspiAccessibleWatcher.cc +++ b/libaurum/src/Impl/Accessibility/AtspiAccessibleWatcher.cc @@ -401,12 +401,12 @@ void AtspiAccessibleWatcher::onAtspiEvents(AtspiEvent *event, void *watcher) 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)) + char *name = AtspiWrapper::Atspi_accessible_get_name(event->source, NULL); + if (!strncmp(name, "Keyboard", 8) || !strncmp(name, "Quickpanel Window", 17) || !strncmp(name, "volume", 6)) { isWindowEventEmitted = true; } - free(role); + free(name); } if (!strncmp(event->type, "w", 1))