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>
This commit is contained in:
parent
c3307440c0
commit
3cc045b6b8
@ -1020,6 +1020,8 @@ var ScreenshotUI = GObject.registerClass({
|
|||||||
|
|
||||||
this._lockdownSettings = new Gio.Settings({ schema_id: 'org.gnome.desktop.lockdown' });
|
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
|
// The full-screen screenshot has a separate container so that we can
|
||||||
// show it without the screenshot UI fade-in for a nicer animation.
|
// show it without the screenshot UI fade-in for a nicer animation.
|
||||||
this._stageScreenshotContainer = new St.Widget({ visible: false });
|
this._stageScreenshotContainer = new St.Widget({ visible: false });
|
||||||
|
Loading…
Reference in New Issue
Block a user