viewSelector: Synthesize a new event with correct source for search

We currently replay events that should start a search to the search
entry, which is fairly dodgy. Synthesize a new event with the correct
source actor instead, which is a bit less evil.
This commit is contained in:
Florian Müllner 2014-07-09 12:06:40 +02:00
parent 1071ac5d25
commit a583f45cc6

View File

@ -508,7 +508,10 @@ const ViewSelector = new Lang.Class({
startSearch: function(event) { startSearch: function(event) {
global.stage.set_key_focus(this._text); global.stage.set_key_focus(this._text);
this._text.event(event, true);
let synthEvent = event.copy();
synthEvent.set_source(this._text);
this._text.event(synthEvent, true);
}, },
// the entry does not show the hint // the entry does not show the hint