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



commit 07d9408420ee4e9633037ba6d49e7b7a4fd9c5a6
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>

 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 340f9a8e1a..2a34144d59 100644
--- a/js/ui/ibusCandidatePopup.js
+++ b/js/ui/ibusCandidatePopup.js
@@ -153,7 +153,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]