aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/main.vala11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/main.vala b/lib/main.vala
index dde166f6..bcf23209 100644
--- a/lib/main.vala
+++ b/lib/main.vala
@@ -984,16 +984,7 @@ public class Indicator.Keyboard.Service : Object {
}
});
((!) unity_session).unlocked.connect (() => {
- if (keyboard_plugin != null) {
- var current = source_settings.get_uint ("current");
-
- try {
- /* Always restore session input source on unlock. */
- ((!) keyboard_plugin).activate_input_source (current);
- } catch (IOError error) {
- warning ("error: %s", error.message);
- }
- }
+ get_active_action ().change_state (source_settings.get_value ("current"));
});
} catch (IOError error) {
warning ("error: %s", error.message);