There's a few things I'm not completely sure about, mostly regarding the calls within the display devices locks.
I feel like it's required to make sure the display settings change is atomic, but sending a message there is maybe not a good idea. If we don't, then I think it's getting racy and WM_DISPLAYCHANGE may be received in incorrect order (but maybe that doesn't matter).