workspace: Grab the key focus when hovering over a window
This is simply an experiment. I'm not sure I like the result, but it was worth trying out regardless. https://bugzilla.gnome.org/show_bug.cgi?id=644306
This commit is contained in:
parent
47a20756b9
commit
aeb9f5775f
@ -89,6 +89,7 @@ const WindowClone = new Lang.Class({
|
||||
this.actor.add_action(clickAction);
|
||||
this.actor.connect('destroy', Lang.bind(this, this._onDestroy));
|
||||
this.actor.connect('key-press-event', Lang.bind(this, this._onKeyPress));
|
||||
this.actor.connect('enter-event', Lang.bind(this, this._onEnter));
|
||||
|
||||
this._draggable = DND.makeDraggable(this.actor,
|
||||
{ restoreOnSuccess: true,
|
||||
@ -213,6 +214,10 @@ const WindowClone = new Lang.Class({
|
||||
return false;
|
||||
},
|
||||
|
||||
_onEnter: function() {
|
||||
this.actor.grab_key_focus();
|
||||
},
|
||||
|
||||
_onClicked: function(action, actor) {
|
||||
this._activate();
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user