[gnome-shell/gnome-40] st/scroll-view: Don't queue redraw in update_fade_effect()



commit 603ecb47ac0861e6b90dd88ae61a0a6e11b8fba4
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Wed Feb 16 13:07:34 2022 +0100

    st/scroll-view: Don't queue redraw in update_fade_effect()
    
    ClutterEffects are responsible for queueing redraws when their
    properties change (and StScrollViewFade is a good citizen already), also
    Clutter itself should queue a redraw when adding/removing an effect.
    
    Users of Clutter should never have to queue redraws themselves (unless
    they're implementing a custom ClutterEffect or ClutterContent), so don't
    queue a redraw here.
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2189>
    (cherry picked from commit 8f4427f87b4ba4d9b24d5302fef4c0a57a8652ac)

 src/st/st-scroll-view.c | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/src/st/st-scroll-view.c b/src/st/st-scroll-view.c
index b10ae44b42..7220720446 100644
--- a/src/st/st-scroll-view.c
+++ b/src/st/st-scroll-view.c
@@ -206,8 +206,6 @@ st_scroll_view_update_fade_effect (StScrollView  *scroll,
           priv->fade_effect = NULL;
         }
     }
-
-  clutter_actor_queue_redraw (CLUTTER_ACTOR (scroll));
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]