[gnome-shell/gnome-42] screenshot: Always raise UI to top when opening
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-42] screenshot: Always raise UI to top when opening
- Date: Mon, 4 Jul 2022 17:15:11 +0000 (UTC)
commit 3300e61a4d00d4c7aa2f00326aef9ad36d3aacc0
Author: Alynx Zhou <alynx zhou gmail com>
Date: Mon Jul 4 12:01:41 2022 +0800
screenshot: Always raise UI to top when opening
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2331>
(cherry picked from commit d14bb7b536625605e9e208650c817d698cfc5bb2)
js/ui/screenshot.js | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js
index 5153ea418f..4bce178ef9 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(),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]