From da2d2d073a04a2765c8a5a3e9cef44066ec0bed9 Mon Sep 17 00:00:00 2001 From: Leonhard Date: Fri, 5 Apr 2024 00:47:26 +0200 Subject: [PATCH] Make window rec work --- src/ScreenCast/Session.vala | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ScreenCast/Session.vala b/src/ScreenCast/Session.vala index 13fbe357..26641f7e 100644 --- a/src/ScreenCast/Session.vala +++ b/src/ScreenCast/Session.vala @@ -133,10 +133,13 @@ public class ScreenCast.Session : Object { return streams; } - private async bool record_window (uint64 id) { + private async bool record_window (uint64 uid) { + var options = new HashTable (str_hash, str_equal); + options["window-id"] = uid; + ObjectPath path; try { - path = yield session.record_virtual (new HashTable (str_hash, str_equal)); + path = yield session.record_window (options); } catch (Error e) { warning ("Failed to record window: %s", e.message); return false;