[gnome-shell/gbsneto/split-pick-paint] st: Use clutter_actor_pick() in pick
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/split-pick-paint] st: Use clutter_actor_pick() in pick
- Date: Fri, 18 Oct 2019 12:31:32 +0000 (UTC)
commit 6a90ea938b793cb17ed93c866f8fdbd8315a33c3
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Oct 17 16:59:13 2019 +0200
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
src/st/st-box-layout.c | 2 +-
src/st/st-scroll-view.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/st/st-box-layout.c b/src/st/st-box-layout.c
index 31a8ed118b..0f02a478be 100644
--- a/src/st/st-box-layout.c
+++ b/src/st/st-box-layout.c
@@ -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);
diff --git a/src/st/st-scroll-view.c b/src/st/st-scroll-view.c
index 3e5e24eba1..029e4a356d 100644
--- a/src/st/st-scroll-view.c
+++ b/src/st/st-scroll-view.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]