From d027e35ceffb8375a90efd3dc7cebda0da894c40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Wed, 13 Feb 2019 02:25:26 +0100 Subject: [PATCH] shell-screenshot: Always use "actors-painted" signal Since we don't care about all the stage to be painted here, we can just proceed when all the actors have been put in place. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/5 --- src/shell-screenshot.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shell-screenshot.c b/src/shell-screenshot.c index 17b0f93ea..00c8cd227 100644 --- a/src/shell-screenshot.c +++ b/src/shell-screenshot.c @@ -658,7 +658,7 @@ shell_screenshot_screenshot_area (ShellScreenshot *screenshot, meta_disable_unredirect_for_display (shell_global_get_display (shell_global_get ())); - g_signal_connect_after (stage, "paint", G_CALLBACK (grab_area_screenshot), result); + g_signal_connect_after (stage, "actors-painted", G_CALLBACK (grab_area_screenshot), result); clutter_actor_queue_redraw (stage); } @@ -744,7 +744,7 @@ shell_screenshot_screenshot_window (ShellScreenshot *screenshot, meta_disable_unredirect_for_display (shell_global_get_display (shell_global_get ())); - g_signal_connect_after (stage, "paint", G_CALLBACK (grab_window_screenshot), result); + g_signal_connect_after (stage, "actors-painted", G_CALLBACK (grab_window_screenshot), result); clutter_actor_queue_redraw (stage); } @@ -812,7 +812,7 @@ shell_screenshot_pick_color (ShellScreenshot *screenshot, meta_disable_unredirect_for_display (display); - g_signal_connect_after (stage, "paint", G_CALLBACK (grab_pixel), result); + g_signal_connect_after (stage, "actors-painted", G_CALLBACK (grab_pixel), result); clutter_actor_queue_redraw (stage); }