cally: Avoid clone spamming state changes

Clones may generate a temporary map/unmap on their source when painting;
this, in turn, will generate unnecessary ATK state changes.

https://bugzilla.gnome.org/show_bug.cgi?id=756371
This commit is contained in:
Emmanuele Bassi 2016-02-23 15:12:57 +00:00
parent c867e9d941
commit 2b0ff2f2ba

View File

@ -1017,6 +1017,13 @@ cally_actor_real_notify_clutter (GObject *obj,
}
else if (g_strcmp0 (pspec->name, "mapped") == 0)
{
/* Clones may temporarily map an actor in order to
* paint it; we don't want this to generate an ATK
* state change
*/
if (clutter_actor_is_in_clone_paint (actor))
return;
state = ATK_STATE_SHOWING;
value = clutter_actor_is_mapped (actor);
}