[gnome-shell] screenshot: Close screenshot UI if we failed to acquire a grab
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] screenshot: Close screenshot UI if we failed to acquire a grab
- Date: Wed, 4 May 2022 17:39:29 +0000 (UTC)
commit 3e8164cc36e938fcc65a3fe84ebfc8579387c66a
Author: Sebastian Keller <skeller gnome org>
Date: Sat Apr 30 08:24:14 2022 +0200
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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2287>
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 98cfec4685..33ea6e85b8 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();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]