overview: Set searchEntry offscreen-redirected always

This corrects weird-looking blending visible as it fades out when the
overview closes. Previously the entry's dark background would drown out
the text as it fades out, but now they maintain a consistent contrast ratio
during the fade.

There's no noticeable change in performance, but in theory it should be
faster as text entries don't change at full frame rate. So stage redraws
will usually have a cached searchEntry drawn and require less effort.
Though the main purpose here is to correct the appearance.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/778
This commit is contained in:
Daniel van Vugt 2019-10-23 12:18:20 +08:00 committed by Florian Müllner
parent b6e57a5ae8
commit fa1b7a9ef5

View File

@ -108,6 +108,7 @@ class OverviewActor extends St.BoxLayout {
track_hover: true,
can_focus: true
});
this._searchEntry.set_offscreen_redirect(Clutter.OffscreenRedirect.ALWAYS);
let searchEntryBin = new St.Bin({
child: this._searchEntry,
x_align: St.Align.MIDDLE