On Mon Jun 3 10:27:07 2024 +0000, Rémi Bernon wrote:
Hmm, I think you're right. I was thinking that it would end up in a call to `apply_display_settings` but it's probably only going to refresh the display devices.
I changed this by sending the WM_DISPLAYCHANGE message when win32u gets notified from the drivers. This is generally only done from the desktop window thread, so calling `send_message( WM_DISPLAYCHANGE )` here should end up doing the same thing as calling the drivers `desktop_resired` functions.
Note that winemac is slightly different here, and also notifies win32u from a different thread, and was calling `macdrv_desktop_resired` from that thread before. I don't think this was right, and it now sends the message to the desktop window, which should be better.