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


(cherry picked from commit 3ba4304da9)
This commit is contained in:
Florian Müllner 2020-04-27 21:45:21 +00:00 committed by Georges Basile Stavracas Neto
parent 5b0d013229
commit 890f5b591f

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);