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
This commit is contained in:
parent
8da8fd76ca
commit
ac6ff95040
@ -200,14 +200,14 @@ Overlay.prototype = {
|
|||||||
|
|
||||||
let me = this;
|
let me = this;
|
||||||
clone.connect("button-press-event",
|
clone.connect("button-press-event",
|
||||||
function() {
|
function(clone, event) {
|
||||||
me._activateWindow(w);
|
me._activateWindow(w, event.get_time());
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
_activateWindow : function(w) {
|
_activateWindow : function(w, time) {
|
||||||
this._deactivate();
|
this._deactivate();
|
||||||
log("Activate "+ w.get_description());
|
w.get_meta_window().activate(time);
|
||||||
},
|
},
|
||||||
|
|
||||||
_deactivate : function() {
|
_deactivate : function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user