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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3667>
This commit is contained in:
parent
313d71249c
commit
e6e9822d8c
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user