Fix for BGO#648130: event host_application should return NULL for the desktop
authorMike Gorse <mgorse@novell.com>
Mon, 18 Apr 2011 16:44:28 +0000 (11:44 -0500)
committerMike Gorse <mgorse@novell.com>
Mon, 18 Apr 2011 16:44:28 +0000 (11:44 -0500)
atspi/atspi-accessible.c

index 9f01868..d163d68 100644 (file)
@@ -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;
       }
     }