From 7bcbf6d5c72c7cbb44ef0c5a737a3015e96375f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Fri, 25 Jun 2021 12:53:13 +0200 Subject: [PATCH] screen-cast/area-src: Drop phase parameter from add_view_painted_watches It was always META_STAGE_WATCH_AFTER_ACTOR_PAINT. Part-of: --- 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 91251cc63..96953fe7f 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; }