Connecting second screen via Thunderbolt and HDMI So my problem is the following:

At home I am connecting my MacBook Pro (macOS Sierra installed) to a second screen using the HDMI port. If I do that, and already have my mac running, on that second screen I have a new "Desktop" (i.e. in Mission Control) and all previously opened windows stay on the first desktop of my mac. This is the behaviour I like.

Now at work I am connecting with Thunderbolt. There, my "Desktop 1" gets transferred to the second screen, together with all my open windows, and I have a new empty Desktop on my mac.

So what I would like:


Get a consistent behaviour, no matter how I connect to a second screen.
Preferably, have the behaviour I get now when connecting with HDMI as default (i.e. the main desktop should always stay on my mac).


Anyone having experience with this?
There is a product that should be able to fix this issue for you:  Stay

From their website:


  Stay can store a set of windows for every combination of displays that
  you use with your computer. Stay can also be configured to
  automatically restore windows as displays are connected and
  disconnected.