I have two external monitors connected to my Macbook Pro. They are arranged so that the two external monitors sit side by side, and the Macbook Pro is opened with the display underneath the two monitors.
The left external monitor is set as the Primary display (where notifications show up).
I arrange my windows so that I have particular applications open on each monitor and then throughout the day I un-dock the laptop for meetings and re-dock the laptop.
Almost without fail every time I re-dock, all of the desktop spaces that were on my right external monitor switch places with all of the desktop spaces that were on my laptop and I have to manually re-arrange all the windows to get them back onto the correct monitors.
Is there any way I can fix this so that the desktop spaces remain on their associated monitors when I re-dock my laptop?
Running Mac OS 10.14.6 on a MacBook Pro (15-inch, 2017)