Window not visible when second monitor is removed

When I have 2 monitors connected and have eM on the second, if I disconnect from the second monitor (as when you undock), instead of the display moving to the primary, it seems to remember it was on the second display so I can see a flash as it attempts to launch to that monitor that does not exist. I have to kill the client and restart to get it to show the window.

A couple years ago I wrote a short simple article on how to handle this common problem.

It doesn’t change the fact that emclient remembers where it was and does not check to see if that area is still visible, but it’ll get the window back on your current screen in a couple seconds.