From ac6ff950407879e3b3276e9930ed1f960e699119 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Fri, 7 Nov 2008 17:14:26 +0000 Subject: [PATCH] Make clicking on windows in the overlay activate the windows Hook up activating windows in the overlay now that we have MetaWindow GObject'ified and exposed to gobject-introspection. svn path=/trunk/; revision=35 --- js/ui/overlay.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/ui/overlay.js b/js/ui/overlay.js index 85176520e..c0a3d6f06 100644 --- a/js/ui/overlay.js +++ b/js/ui/overlay.js @@ -200,14 +200,14 @@ Overlay.prototype = { let me = this; clone.connect("button-press-event", - function() { - me._activateWindow(w); + function(clone, event) { + me._activateWindow(w, event.get_time()); }); }, - _activateWindow : function(w) { + _activateWindow : function(w, time) { this._deactivate(); - log("Activate "+ w.get_description()); + w.get_meta_window().activate(time); }, _deactivate : function() {