From b58a600aff58e5bfa0a5060ebc4c834596dde64c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Hern=C3=A1ndez?= Date: Tue, 25 Oct 2011 10:10:14 +0200 Subject: [PATCH] Update the minimize/activate logic, now acts like the classic windows list. --- gnome-shell-windowslist@emergya.com/extension.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gnome-shell-windowslist@emergya.com/extension.js b/gnome-shell-windowslist@emergya.com/extension.js index f66437e..b09c3a2 100644 --- a/gnome-shell-windowslist@emergya.com/extension.js +++ b/gnome-shell-windowslist@emergya.com/extension.js @@ -162,10 +162,11 @@ AppMenuButtonAlt.prototype = { }, _itemActivated: function(window) { - if (!window.minimized) - window.minimize(); - else + if (!window.has_focus()) { Main.activateWindow(window); + } else { + window.minimize(); + } }, /**