I had the same problem with keyboard layout switching in FreeMind (java app) on Debian GNU/Linux 6.0.5 (squeeze). I also use scim for Japanese.
I've solved my problem in the next way:
$ sudo gedit /etc/scim/global /SupportedUnicodeLocales = en_US.UTF-8 ----------> /SupportedUnicodeLocales = en_US.UTF-8,ru_RU.UTF-8
Reboot.
After that I can switch Ru and En layouts as usual. (Also it has somehow solved the problem with Japanese typing in FreeMind.)
I hope it may be useful for someone.
I had the same problem with keyboard layout switching in FreeMind (java app) on Debian GNU/Linux 6.0.5 (squeeze). I also use scim for Japanese.
I've solved my problem in the next way:
$ sudo gedit /etc/scim/globaldeLocales = en_US.UTF-8 ----------> /SupportedUnicodeLocales = en_US.UTF-8,ru_RU.UTF-8
/SupportedUnico
Reboot.
After that I can switch Ru and En layouts as usual. (Also it has somehow solved the problem with Japanese typing in FreeMind.)
I hope it may be useful for someone.