Commit ca44977d authored by Rui Matos's avatar Rui Matos
Browse files

status/keyboard: Only change the current source setting if it changed

This avoids all the work that goes on in various processes when
switching input sources if the activated source is the currently
configured one.
parent bcf29447
......@@ -470,6 +470,8 @@ const InputSourceIndicator = new Lang.Class({
let is = new InputSource(type, id, displayName, shortName, i);
is.connect('activate', Lang.bind(this, function() {
if (this._currentSource.index == is.index)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment