From 3e8164cc36e938fcc65a3fe84ebfc8579387c66a Mon Sep 17 00:00:00 2001 From: Sebastian Keller Date: Sat, 30 Apr 2022 08:24:14 +0200 Subject: [PATCH] screenshot: Close screenshot UI if we failed to acquire a grab Otherwise the actors will remain invisible yet reactive covering up the screen. Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5414 Part-of: --- js/ui/screenshot.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index 98cfec468..33ea6e85b 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -1510,8 +1510,10 @@ var ScreenshotUI = GObject.registerClass({ actor: this, onUngrab: () => this.close(), }); - if (!grabResult) + if (!grabResult) { + this.close(true); return; + } this._refreshButtonLayout();