On Fri Feb 27 11:56:38 2026 +0000, Twaik Yont wrote:
I cached the desktop window handle here to avoid unnecessary wineserver roundtrips. In this configuration the desktop window is effectively immutable for the lifetime of the explorer.exe instance, so repeatedly querying it would only introduce additional synchronization overhead without changing the result. It's not related to the backend, you can have multiple Win32 desktops, and each desktop has a desktop window and may have an explorer.exe process running for it. Only one desktop is visible at a time but the application can request to switch the active desktop. Each Win32 GUI thread is associated with a Win32 desktop, and may also switch between existing desktops, until it has created some windows. On creation the windows are attached to their thread's current desktop window. CEF for instance, is known to create winstations and desktops (though invisible) for its internal sandboxing.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9874#note_131129