mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
scroll-actor: Paint children in pick mode
Chaining up to the parent's implementation of pick() is not enough: we need to paint our children explicitly because of the compatibility mode checks we use to avoid breaking custom containers. https://bugzilla.gnome.org/show_bug.cgi?id=676088
This commit is contained in:
parent
39a4929d75
commit
c54c3047f8
@ -155,10 +155,20 @@ static void
|
||||
clutter_scroll_actor_pick (ClutterActor *actor,
|
||||
const ClutterColor *pick_color)
|
||||
{
|
||||
ClutterActorIter iter;
|
||||
ClutterActor *child;
|
||||
|
||||
clutter_scroll_actor_push_clip (actor);
|
||||
|
||||
CLUTTER_ACTOR_CLASS (clutter_scroll_actor_parent_class)->pick (actor, pick_color);
|
||||
|
||||
/* FIXME - this has to go away when we remove the vfunc check inside
|
||||
* the ClutterActor::pick default implementation
|
||||
*/
|
||||
clutter_actor_iter_init (&iter, actor);
|
||||
while (clutter_actor_iter_next (&iter, &child))
|
||||
clutter_actor_paint (child);
|
||||
|
||||
cogl_clip_pop ();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user