searchController: Avoid event.set_source() API
It does not make sense that the target actor is both destinatary and content of the events being sent, so this API call is going away. Since the event can be sent entirely unmodified (more so, it will become immutable/readonly in the future), avoid creating a copy since it does not matter sending one or other struct. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2216>
This commit is contained in:
parent
dc0f286fe9
commit
6d895bf8a9
@ -228,10 +228,7 @@ var SearchController = GObject.registerClass({
|
||||
|
||||
startSearch(event) {
|
||||
global.stage.set_key_focus(this._text);
|
||||
|
||||
let synthEvent = event.copy();
|
||||
synthEvent.set_source(this._text);
|
||||
this._text.event(synthEvent, false);
|
||||
this._text.event(event, false);
|
||||
}
|
||||
|
||||
// the entry does not show the hint
|
||||
|
Loading…
Reference in New Issue
Block a user