Discovered that it's not related solely to keyboard switching: focus loss occurs when pressing any bound shortcut, for example volume up/down. So, it is in 'media-keys' unity-settings-daemon plugin, not in 'keyboard' plugin.
Also, 'media-keys' controls keyboard layouts only in unity-settings-daemon, upstream gnome-settings-daemon doesn't have code for doing this.
break;
case BATTERY_KEY: do_battery_action (manager); break;
+ case SWITCH_INPUT_SOURCE_KEY:
+ case SWITCH_INPUT_SOURCE_BACKWARD_KEY:
+ do_switch_input_source_action (manager, type);
+ break;
/* Note, no default so compiler catches missing keys */
case CUSTOM_KEY: g_assert_not_reached ();
Discovered that it's not related solely to keyboard switching: focus loss occurs when pressing any bound shortcut, for example volume up/down. So, it is in 'media-keys' unity-settings- daemon plugin, not in 'keyboard' plugin.
Also, 'media-keys' controls keyboard layouts only in unity-settings- daemon, upstream gnome-settings- daemon doesn't have code for doing this.
case BATTERY_KEY:
+ case SWITCH_
+ case SWITCH_
+ do_switch_
+ break;
/* Note, no default so compiler catches missing keys */
case CUSTOM_KEY: