[mutter/gnome-40] screen-cast/area-src: Drop phase parameter from add_view_painted_watches



commit 9aa2206ece942d067b9a7ab7a294e9d234a19c20
Author: Michel Dänzer <mdaenzer redhat com>
Date:   Tue Jul 6 16:50:27 2021 +0200

    screen-cast/area-src: Drop phase parameter from add_view_painted_watches
    
    It was always META_STAGE_WATCH_AFTER_ACTOR_PAINT.
    (cherry picked from commit 042a90c53697482c8c897ea45e0cb77b7037a77a)

 src/backends/meta-screen-cast-area-stream-src.c | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/src/backends/meta-screen-cast-area-stream-src.c b/src/backends/meta-screen-cast-area-stream-src.c
index 91251cc63b..96953fe7f9 100644
--- a/src/backends/meta-screen-cast-area-stream-src.c
+++ b/src/backends/meta-screen-cast-area-stream-src.c
@@ -267,8 +267,7 @@ stage_painted (MetaStage           *stage,
 }
 
 static void
-add_view_painted_watches (MetaScreenCastAreaStreamSrc *area_src,
-                          MetaStageWatchPhase          watch_phase)
+add_view_painted_watches (MetaScreenCastAreaStreamSrc *area_src)
 {
   MetaScreenCastStreamSrc *src = META_SCREEN_CAST_STREAM_SRC (area_src);
   MetaScreenCastStream *stream = meta_screen_cast_stream_src_get_stream (src);
@@ -296,7 +295,7 @@ add_view_painted_watches (MetaScreenCastAreaStreamSrc *area_src,
 
           watch = meta_stage_watch_view (meta_stage,
                                          CLUTTER_STAGE_VIEW (view),
-                                         watch_phase,
+                                         META_STAGE_WATCH_AFTER_ACTOR_PAINT,
                                          stage_painted,
                                          area_src);
 
@@ -316,8 +315,7 @@ on_monitors_changed (MetaMonitorManager          *monitor_manager,
     meta_stage_remove_watch (stage, l->data);
   g_clear_pointer (&area_src->watches, g_list_free);
 
-  add_view_painted_watches (area_src,
-                            META_STAGE_WATCH_AFTER_ACTOR_PAINT);
+  add_view_painted_watches (area_src);
 }
 
 static void
@@ -349,14 +347,12 @@ meta_screen_cast_area_stream_src_enable (MetaScreenCastStreamSrc *src)
       meta_cursor_tracker_track_position (cursor_tracker);
       G_GNUC_FALLTHROUGH;
     case META_SCREEN_CAST_CURSOR_MODE_HIDDEN:
-      add_view_painted_watches (area_src,
-                                META_STAGE_WATCH_AFTER_ACTOR_PAINT);
+      add_view_painted_watches (area_src);
       break;
     case META_SCREEN_CAST_CURSOR_MODE_EMBEDDED:
       inhibit_hw_cursor (area_src);
       meta_cursor_tracker_track_position (cursor_tracker);
-      add_view_painted_watches (area_src,
-                                META_STAGE_WATCH_AFTER_ACTOR_PAINT);
+      add_view_painted_watches (area_src);
       break;
     }
 


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