How can I stop windows from being resized on fast-user-switch? I am on Mac OS X 10.9.5 (Mavericks). I have a late 2013 MacBook Pro running in clamshell mode with an external 27 inch Apple monitor attached to it.

I am logged in with two users, A and B. When I do a fast user switch from user A to user B, most windows that were open for user B when I last worked with that user are resized and some windows even change their position. Maximized windows are affected the most, typically they become less in height while staying the same in width. It feels as if initiating the user switch had temporarily changed the screen size or resolution, causing windows to change their size/position to adjust for the smaller screen size.

Is this a known problem of Mac OS X in general, or of running a MacBook in clamshell mode? Has anyone experienced this as well and/or knows how to fix it?

I can't remember when exactly I have noticed this problem for the first time. I am certain that it didn't exist with older versions of Mac OS X (i.e. 10.8 and older), although I must say that when I was last using Mac OS X 10.8 I also had a different MacBook and a different monitor. The general work environment MacBook/clamshell mode/external monitor has been the same for me for years.
It's a known bug of the 10.9.3 update that has been reported last May. Sadly, it has yet to be fixed.

Possible workarounds:


Hide your windows before fast user switching. The app Notes is immune to the bug, so you can switch to that app and hide all other windows from there.
Use the app stay (cost $14.99, not checked)


Another workaround that works for some people (but not for me) is to kill the dock before fast user switching. Can even be automated following these instructions.