gnome-shell r35 - trunk/js/ui



Author: otaylor
Date: Fri Nov  7 17:14:26 2008
New Revision: 35
URL: http://svn.gnome.org/viewvc/gnome-shell?rev=35&view=rev

Log:
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.


Modified:
   trunk/js/ui/overlay.js

Modified: trunk/js/ui/overlay.js
==============================================================================
--- trunk/js/ui/overlay.js	(original)
+++ trunk/js/ui/overlay.js	Fri Nov  7 17:14:26 2008
@@ -200,14 +200,14 @@
 
 	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() {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]