summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/ui/screenshot.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js
index d50a4f046..fa67ff2d7 100644
--- a/js/ui/screenshot.js
+++ b/js/ui/screenshot.js
@@ -1040,6 +1040,16 @@ var ScreenshotUI = GObject.registerClass({
this._screencastProxy.connectSignal('Error',
() => this._screencastFailed());
+ this._screencastProxy.connect('notify::g-name-owner', () => {
+ if (this._screencastProxy.g_name_owner)
+ return;
+
+ if (!this._screencastInProgress)
+ return;
+
+ this._screencastFailed();
+ });
+
this._lockdownSettings = new Gio.Settings({ schema_id: 'org.gnome.desktop.lockdown' });
// The full-screen screenshot has a separate container so that we can