On Wed Aug 19 11:00:24 2026 +0000, Rémi Bernon wrote:
This probably should be done somewhere inside or alongside the `add_virtual_source` function in `win32u/sysparams.c`. That function creates the virtual monitor used for the virtual desktop mode, and the monitor should already support a non-fullscreen work area, and that work area should then be already shared with every other process like is the case for non-virtual desktop mode. Hmm, do you mean that the virtual monitor should have the work area rect adjusted at creation time? I don't think that works because the work area is meant to be a dynamic property. But I might be misunderstanding what you mean.
If you mean that this change should be made specific to the virtual monitor only: that would be reasonable, though one subtle aspect of the current patch is that it also attempts to preserve the ability to override the reported work area when _not_ in virtual desktop mode. I assume some app relies on that, otherwise WINE wouldn't have implemented it, though I must admit I don't know what it's useful for. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/11699#note_149239