On Wed May 1 09:18:10 2024 +0000, Rémi Bernon wrote:
I think we can initialize the current modes in win32u as well instead
of doing it in explorer.exe. This is done already, or at least, registry settings is initialized from current settings if it was not set yet. There's a difference though that explorer does this every time it is started while win32u currently only does the first time the cache is initialized.
Exposing these detached sources produces the following errors when
using virtual desktop. But then, I don't see these? I've included a change to explorer to only change display settings for attached devices instead.
I don't think "explorer: Only initialize display settings for attached devices." is the correct solution to these failures. I looked into it and it turned out to be a regression from ee0aad5c. I use a 160Hz display so that explains why it doesn't happen on your side. I submitted https://gitlab.winehq.org/wine/wine/-/merge_requests/5557 to fix this. Meanwhile, please drop "explorer: Only initialize display settings for attached devices."