[gnome-shell] overview: Set searchEntry offscreen-redirected always



commit fa1b7a9ef526e8a7a53863de0c375eb20b576d86
Author: Daniel van Vugt <daniel van vugt canonical com>
Date:   Wed Oct 23 12:18:20 2019 +0800

    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

 js/ui/overview.js | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/js/ui/overview.js b/js/ui/overview.js
index 0b547c2be9..4775f1bd6d 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]