From e6e9822d8ca1619776d513423f9bcbbf1849dbf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 11 Mar 2025 01:23:40 +0100 Subject: [PATCH] screenshot: Close overview/calendar when activating notification While the notifications are transient, they still appear in the message list while the banner is shown, and can be activated there. The expected behavior in that case is that we close the calendar popup and/or leave the overview. Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8246 Part-of: --- js/ui/screenshot.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index e3bd5495f..49873c10a 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -2115,6 +2115,9 @@ export const ScreenshotUI = GObject.registerClass({ logError(err, 'Error opening screencast'); } }); + + Main.overview.hide(); + Main.panel.closeCalendar(); } Main.messageTray.add(source); @@ -2359,6 +2362,9 @@ function _storeScreenshot(bytes, pixbuf) { } catch (err) { logError(err, 'Error opening screenshot'); } + + Main.overview.hide(); + Main.panel.closeCalendar(); }); }