diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index 2370a49a9..928777440 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -777,11 +777,8 @@ const Source = new Lang.Class({ if (this.app == null) return; - let windows = this.app.get_windows(); - if (windows.length > 0) { - let mostRecentWindow = windows[0]; - Main.activateWindow(mostRecentWindow); - } + this.app.activate(); + Main.overview.hide(); }, destroy: function() {