From 0892065649b43f659afc6bebcaa2ab89c706d80a Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 10 Oct 2013 16:28:42 -0400 Subject: [PATCH] notificationDaemon: Raise the app when clicking on a notification, not the MRU window https://bugzilla.gnome.org/show_bug.cgi?id=709866 --- js/ui/notificationDaemon.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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() {