Yeah I had this problem as well with my old Dell and Windows. Also weird problems with high DPI displays and window sizes. If I unplugged one monitor, the other one would drop for a second and then the menu bars would shrink on the still plugged in display.
Now I have a studio display. Get out of box, plug it in, works. Open laptop, spans display instantly. Unplug, windows move to the laptop. Never goes wrong. No bugs.