Build 5974
SVN-
Perform keyboard layout switching whenever window focus is gained or lost.
-
Make layout switch duplicate guard bidirectional.
-
Refactor keyboard layout switching code into winbits.c and clean it up. No functional changes.