From b00f122fcf21d63523bdc1293aa62177ff5a8c5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sat, 14 Feb 2015 06:01:20 +0100 Subject: [PATCH] notificationDaemon: Do the same for GTK+ notifications There is not good reason why activating a GTK+ notification should behave fundamentally different from fd.o notifications - we don't raise the app because we expect it to perform an appropriate action, but that does not include closing overview or calendar for us ... https://bugzilla.gnome.org/show_bug.cgi?id=744817 --- js/ui/notificationDaemon.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index feb91854d..aedda638f 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -716,11 +716,17 @@ const GtkNotificationDaemonAppSource = new Lang.Class({ activateAction: function(actionId, target) { let app = this._createApp(); app.ActivateActionRemote(actionId, target ? [target] : [], getPlatformData()); + + Main.overview.hide(); + Main.panel.closeCalendar(); }, open: function() { let app = this._createApp(); app.ActivateRemote(getPlatformData()); + + Main.overview.hide(); + Main.panel.closeCalendar(); }, addNotification: function(notificationId, notificationParams, showBanner) {