[gnome-shell/gnome-42] ibusCandidatePopup: Init it as a top chrome



commit 321460f70afe02a9ffe756a162e3a16318ba51c0
Author: Alynx Zhou <alynx zhou gmail com>
Date:   Mon Jul 4 11:57:36 2022 +0800

    ibusCandidatePopup: Init it as a top chrome
    
    ibusCandidatePopup actually works as a top chrome because it always
    raises itself above top_window_group when updating visibility, so just
    initing it as a top chrome instead of initing it below top_window_group.
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2331>
    (cherry picked from commit 07d9408420ee4e9633037ba6d49e7b7a4fd9c5a6)

 js/ui/ibusCandidatePopup.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/ibusCandidatePopup.js b/js/ui/ibusCandidatePopup.js
index fc7a0871c8..330830b2ea 100644
--- a/js/ui/ibusCandidatePopup.js
+++ b/js/ui/ibusCandidatePopup.js
@@ -155,7 +155,7 @@ class IbusCandidatePopup extends BoxPointer.BoxPointer {
         this._dummyCursor = new Clutter.Actor({ opacity: 0 });
         Main.layoutManager.uiGroup.add_actor(this._dummyCursor);
 
-        Main.layoutManager.addChrome(this);
+        Main.layoutManager.addTopChrome(this);
 
         const box = new St.BoxLayout({
             style_class: 'candidate-popup-content',


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