[gnome-shell] screenshot: Close on lock
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] screenshot: Close on lock
- Date: Thu, 3 Feb 2022 16:29:57 +0000 (UTC)
commit 3cc045b6b89d5e6db1c12cff219d504b929e2ccb
Author: Ivan Molodetskikh <yalterz gmail com>
Date: Wed Feb 2 21:11:03 2022 +0300
screenshot: Close on lock
Since the screenshot UI cannot open in GDM or on the lock screen, it
seems that simply closing it on any session mode update is sufficient,
without adding extra variables.
Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4996
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2149>
js/ui/screenshot.js | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js
index 56f3cab7f1..fc3334fb73 100644
--- a/js/ui/screenshot.js
+++ b/js/ui/screenshot.js
@@ -1020,6 +1020,8 @@ var ScreenshotUI = GObject.registerClass({
this._lockdownSettings = new Gio.Settings({ schema_id: 'org.gnome.desktop.lockdown' });
+ Main.sessionMode.connect('updated', () => this.close(true));
+
// The full-screen screenshot has a separate container so that we can
// show it without the screenshot UI fade-in for a nicer animation.
this._stageScreenshotContainer = new St.Widget({ visible: false });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]