Windows (and Linux) users are used to the fact that after switching the typing language, the change affects only the active window. This way, one can type in English in the browser window, and Spanish in the IM window, without having to switch language after each Alt-Tab.
Is there a similar setting for OS X?