[mutter/gbsneto/window-screencast-fixes: 40/44] window-stream-src: Ensure initial frame is recorded
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gbsneto/window-screencast-fixes: 40/44] window-stream-src: Ensure initial frame is recorded
- Date: Thu, 26 Mar 2020 18:23:23 +0000 (UTC)
commit 6441c3c2614081aa97543a49d2039f1f84c3faae
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Mar 17 16:55:39 2020 -0300
window-stream-src: Ensure initial frame is recorded
MetaScreenCastWindowStreamSrc connects to the "damaged" signal of
MetaWindowActor. This signal is not exactly tied to the paint cycle
of the stage, and a damage may take quite a while to arrive when
a client doesn't want to draw anything. For that reason, the window
screencast can start empty, waiting for a damage to arrive.
Ensure at least one frame is recorded when enabling the window stream.
Fixes: https://gitlab.gnome.org/GNOME/mutter/issues/1097
https://gitlab.gnome.org/GNOME/mutter/merge_requests/1129
src/backends/meta-screen-cast-window-stream-src.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/backends/meta-screen-cast-window-stream-src.c
b/src/backends/meta-screen-cast-window-stream-src.c
index 1159ddb69..bba19f5be 100644
--- a/src/backends/meta-screen-cast-window-stream-src.c
+++ b/src/backends/meta-screen-cast-window-stream-src.c
@@ -378,6 +378,8 @@ meta_screen_cast_window_stream_src_enable (MetaScreenCastStreamSrc *src)
case META_SCREEN_CAST_CURSOR_MODE_HIDDEN:
break;
}
+
+ meta_screen_cast_stream_src_maybe_record_frame (src);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]