Random behaviour when shutting laptop lid with secondary display connected via dock
I have my setup configured so that when I shut my laptop lid, my screen locks.
If my laptop (XPS15) is docked and connected to an external monitor via the dock, when I shut the lid, I expect my screen to lock. Most of the time it does.
But sometimes (maybe once in ~20 events or so) when I shut my laptop lid, all my windows are moved to my external monitor and the screen is NOT locked. I assume my laptop monitor switches off at this point.
If I open my laptop screen at this point, some of the windows will return to my laptop screen (this is a bit temperamental when it comes to which windows go where - it never matches the starting point).