keyboard: Add missing setter

We override the :visible property for the keyboard actor, but don't
provide a corresponding setter. The property is therefore read-only
on the javascript level, and any attempt to set it will fail.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2691
This commit is contained in:
Florian Müllner 2020-04-27 23:45:21 +02:00
parent 49d6db34b7
commit 3ba4304da9

View File

@ -1257,6 +1257,10 @@ class Keyboard extends St.BoxLayout {
return this._keyboardVisible && super.visible; return this._keyboardVisible && super.visible;
} }
set visible(visible) {
super.visible = visible;
}
_onFocusPositionChanged(focusTracker) { _onFocusPositionChanged(focusTracker) {
let rect = focusTracker.getCurrentRect(); let rect = focusTracker.getCurrentRect();
this.setCursorLocation(focusTracker.currentWindow, rect.x, rect.y, rect.width, rect.height); this.setCursorLocation(focusTracker.currentWindow, rect.x, rect.y, rect.width, rect.height);