Bug 1016283 - Prevent flash of black when switching layout of the same keyboard +shepherd