How can I fix misplaced dock and incorrect wallpaper on external monitor after waking MacBook from sleep?
Dock appears in wrong place on external monitor after waking from sleep. OS UI layout seems to think the screen resolution is the same as the MacBook Pro's internal display
After waking from sleep, the dock is in the middle of the screen, and the wallpaper is the incorrect size until I unplug and reconnect the external monitor. The wallpaper is also missing from the built-in display. It's as if part of the macOS UI doesn't know an external monitor is plugged in.
This seems like a bug in part of macOS. Is there a fix or at least some workaround? I'm fine with needing to set up a script or automation to force it to update; I just don't want to have to re-plug the cable every time I wake the MacBook up.
[Re-Titled by Moderator]