st: Use clutter_actor_pick() in pick
Use the new function to perform picking and avoid going through any painting-related code paths. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/773
This commit is contained in:
parent
80680803aa
commit
6965781d59
@ -489,7 +489,7 @@ st_box_layout_pick (ClutterActor *actor)
|
||||
for (child = clutter_actor_get_first_child (actor);
|
||||
child != NULL;
|
||||
child = clutter_actor_get_next_sibling (child))
|
||||
clutter_actor_paint (child);
|
||||
clutter_actor_pick (child);
|
||||
|
||||
if (priv->hadjustment || priv->vadjustment)
|
||||
cogl_framebuffer_pop_clip (fb);
|
||||
|
@ -302,11 +302,11 @@ st_scroll_view_pick (ClutterActor *actor)
|
||||
CLUTTER_ACTOR_CLASS (st_scroll_view_parent_class)->pick (actor);
|
||||
|
||||
if (priv->child)
|
||||
clutter_actor_paint (priv->child);
|
||||
clutter_actor_pick (priv->child);
|
||||
if (priv->hscrollbar_visible)
|
||||
clutter_actor_paint (priv->hscroll);
|
||||
clutter_actor_pick (priv->hscroll);
|
||||
if (priv->vscrollbar_visible)
|
||||
clutter_actor_paint (priv->vscroll);
|
||||
clutter_actor_pick (priv->vscroll);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
Loading…
Reference in New Issue
Block a user