screenshot: Always raise UI to top when opening

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2331>
This commit is contained in:
Alynx Zhou 2022-07-04 12:01:41 +08:00 committed by Marge Bot
parent 67a1d3b262
commit d14bb7b536

View File

@ -1506,6 +1506,10 @@ var ScreenshotUI = GObject.registerClass({
// pop their grabs.
Main.layoutManager.emit('system-modal-opened');
const { screenshotUIGroup } = Main.layoutManager;
screenshotUIGroup.get_parent().set_child_above_sibling(
screenshotUIGroup, null);
const grabResult = this._grabHelper.grab({
actor: this,
onUngrab: () => this.close(),