Skip to content

Commit

Permalink
Make window rec work
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 committed Apr 4, 2024
1 parent 06f3b8a commit da2d2d0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ScreenCast/Session.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, Variant> (str_hash, str_equal);
options["window-id"] = uid;

ObjectPath path;
try {
path = yield session.record_virtual (new HashTable<string, Variant> (str_hash, str_equal));
path = yield session.record_window (options);
} catch (Error e) {
warning ("Failed to record window: %s", e.message);
return false;
Expand Down

0 comments on commit da2d2d0

Please sign in to comment.