Skip to content

Commit

Permalink
ScreencastSession doesn't seem to be needed anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellandau committed Oct 29, 2023
1 parent 38fd42c commit 009b50c
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/service/components/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,29 +381,6 @@ class Controller {
return reply.deepUnpack()[0];
}

async _createScreenCastSession(sessionId) {
if (this.connection === null)
throw new Error('No DBus connection');

const options = new GLib.Variant('(a{sv})', [{
'disable-animations': GLib.Variant.new_boolean(false),
'remote-desktop-session-id': GLib.Variant.new_string(sessionId),
}]);

const reply = await this.connection.call(
'org.gnome.Mutter.ScreenCast',
'/org/gnome/Mutter/ScreenCast',
'org.gnome.Mutter.ScreenCast',
'CreateSession',
options,
null,
Gio.DBusCallFlags.NONE,
-1,
null);

return reply.deepUnpack()[0];
}

async _ensureAdapter() {
try {
// Update the timestamp of the last event
Expand Down Expand Up @@ -438,8 +415,6 @@ class Controller {
this._session = new RemoteSession(objectPath);
await this._session.start();

await this._createScreenCastSession(this._session.session_id);

// Watch for the session ending
this._sessionClosedId = this._session.connect(
'closed',
Expand Down

0 comments on commit 009b50c

Please sign in to comment.