Skip to content

Commit d7ee482

Browse files
committed
keyboardManager.js: Don't re-activate a layout if it's already
active. This avoids extra overhead and potential focus issues when 'per-window' tracking is enabled. ref: linuxmint/mintinstall#498
1 parent 3e7ec4f commit d7ee482

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

js/ui/keyboardManager.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,9 @@ var InputSourceManager = class {
627627
}
628628

629629
activateInputSource(is) {
630+
if (is === this._currentSource)
631+
return;
632+
630633
// The focus changes during holdKeyboard/releaseKeyboard may trick
631634
// the client into hiding UI containing the currently focused entry.
632635
// So holdKeyboard/releaseKeyboard are not called when

0 commit comments

Comments
 (0)