On Fri Mar 24 16:01:45 2023 +0000, Rémi Bernon wrote:
Fwiw regarding display settings, the default (nulldrv) implementation should already be able to share current display settings and display changes across all processes through the registry. It's currently guarded by `ChangeDisplaySettings` returning `E_NOTIMPL`, but could perhaps be done unconditionally. Of course that's not necessarily in sync with the host settings, and needs to be updated on external changes.
@julliard
I should note that using shared memory that way is not allowed in Wine. It's not considered acceptable that one crashing app can take down the entire session. Shared state has to be stored in the Wine server.
I was under the impression that the `NtCreateSection("\??\WaylandDisplayDevices", file=0)` call I am using is doing effectively that, i.e., it creates a server-owned shared memory region, that stays alive as long as there are handles to it.
It's unclear to me how an app crashing would take the session down in this case. Could you elaborate? Is there some other server provided mechanism that would be preferable to use?