From d14bb7b536625605e9e208650c817d698cfc5bb2 Mon Sep 17 00:00:00 2001 From: Alynx Zhou Date: Mon, 4 Jul 2022 12:01:41 +0800 Subject: [PATCH] screenshot: Always raise UI to top when opening Part-of: --- js/ui/screenshot.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index a84cd0a44..bdbf7134f 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -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(),