ibusCandidatePopup: Use plain actor as dummy cursor
Now that source actors no longer have to be widgets, we can use a plain actor for the dummy cursor and save a bit of overhead. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1903>
This commit is contained in:
parent
16d3718735
commit
f51fb4bed0
@ -146,7 +146,7 @@ class IbusCandidatePopup extends BoxPointer.BoxPointer {
|
|||||||
this.visible = false;
|
this.visible = false;
|
||||||
this.style_class = 'candidate-popup-boxpointer';
|
this.style_class = 'candidate-popup-boxpointer';
|
||||||
|
|
||||||
this._dummyCursor = new St.Widget({ opacity: 0 });
|
this._dummyCursor = new Clutter.Actor({ opacity: 0 });
|
||||||
Main.layoutManager.uiGroup.add_actor(this._dummyCursor);
|
Main.layoutManager.uiGroup.add_actor(this._dummyCursor);
|
||||||
|
|
||||||
Main.layoutManager.addChrome(this);
|
Main.layoutManager.addChrome(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user