diff options
author | Mike Gorse <mgorse@novell.com> | 2011-04-18 11:44:28 -0500 |
---|---|---|
committer | Mike Gorse <mgorse@novell.com> | 2011-04-18 11:44:28 -0500 |
commit | d4d351426d15f0ac8f113d7db419676933936b26 (patch) | |
tree | e499804b47a5fd3c668e6c9d22e507a16bd71910 | |
parent | bae12236d35ba6da1506a4c33094cd6b91d38e22 (diff) | |
download | at-spi2-core-d4d351426d15f0ac8f113d7db419676933936b26.tar.gz |
Fix for BGO#648130: event host_application should return NULL for the desktop
-rw-r--r-- | atspi/atspi-accessible.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/atspi/atspi-accessible.c b/atspi/atspi-accessible.c index 9f01868f..d163d687 100644 --- a/atspi/atspi-accessible.c +++ b/atspi/atspi-accessible.c @@ -726,6 +726,11 @@ atspi_accessible_get_application (AtspiAccessible *obj, GError **error) if (root) { g_object_unref (obj); + if (atspi_accessible_get_role (root, NULL) == ATSPI_ROLE_DESKTOP_FRAME) + { + g_object_unref (root); + return NULL; + } return root; } } |