keyboard: Clear keyboard rest timer when opening immediately
When immediate is true on open(), we want to show the OSK immediately, it also makes sense to cleanup the keyboard rest timer in that case. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1728>
This commit is contained in:
parent
cb68bbee36
commit
f3f0396b7e
@ -1743,12 +1743,13 @@ var Keyboard = GObject.registerClass({
|
||||
return;
|
||||
}
|
||||
|
||||
this._clearKeyboardRestTimer();
|
||||
|
||||
if (immediate) {
|
||||
this._open();
|
||||
return;
|
||||
}
|
||||
|
||||
this._clearKeyboardRestTimer();
|
||||
this._keyboardRestingId = GLib.timeout_add(GLib.PRIORITY_DEFAULT,
|
||||
KEYBOARD_REST_TIME,
|
||||
() => {
|
||||
|
Loading…
Reference in New Issue
Block a user