On Wed Aug 19 11:10:48 2026 +0000, Rémi Bernon wrote:
It can be set at creation time but it can also be set later, we should support display device changes and that should already be synchronized across processes. One process can request a change, then calling `NtUserCallNoParam( NtUserCallNoParam_DisplayModeChanged )` should trigger a display devices refresh (which should take the change into account when recreating the virtual desktop monitor). That could also work for non virtual desktop mode, by overriding each monitor rcWork when they are enumerated, although I'm not completely sure this is a good idea. Ah, so there _is_ a mechanism for syncing changes across processes? I had wanted to set this in the monitor info directly, but couldn't seem to find anywhere the cache was invalidated or the monitor info was read back from the server, despite the existence of the “monitor serial” implying this should exist.
Maybe that function is what I was missing. I'll dig into that, thanks a lot for the pointer. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/11699#note_149242