Application windows moved off screen
I have two displays at work, so it frequently happens that I wake my MBP and connect a second monitor. (The built-in display is the main one, and I'm using the Mavericks default of having a different workspace per display.) A few times a month, once I log in through FileVault2, certain apps will be missing all of their windows which were on the built-in display. It doesn't matter if there are 20 windows open in, say, Safari. If I had all 20 open on the main display, then all of them will be hidden. (If one window was on the external display, then that window will be available as normal and won't have moved at all, even if the rest of the app's windows are gone.) They'll be listed in the Window menu, and they will respond to keyboard shortcuts. I can close them with Cmd-W, for example. If I press Cmd-N, a new window will show up in the correct position on the main display and I will be able to use it fine. When I use Shift-fn-F10 to invoke App Expose, I'm able to see all the windows on the main display, and they fly in from the left, where the secondary display is positioned—but they're never visible on that dispaly. If I select one from Expose, they all fly back to the left and I'm left again with no visible window.
When the app is in focus, I can actually see the shadow of the right side of the window(s) darkening the left edge of the main display, and I can even RESIZE the topmost window on the stack by placing the mouse cursor in the shadow and dragging to the right when I get the resize cursor. Unfortunately, this doesn't get me any closer to recovering the windows, because they have been shifted up by 150px or so, and thus the toolbar (which I could use to drag the window around) is hidden above the top edge of the screen.
When this problem strikes, it affects many open apps, but seemingly not all of them. Safari, Terminal and Mail are frequent sufferers. I can restart the app to get the windows back.
Is anyone else seeing this? It might be related to this thread:
https://discussions.apple.com/thread/5516275
However, I haven't noticed the windows being resized at all.
MacBook Pro with Retina display, OS X Mavericks (10.9), External Samsung SyncMaster 2243