On Wed Mar 4 07:05:52 2026 +0000, Twaik Yont wrote:
Update. `is_desktop` flag is only relevant for explorer.exe process holding the desktop window. In other cases it only creates unneded wineserver overhead, even though it is small. The flag is only needed to indicate that the window is being desktop window to apply some java-side code, in other cases it is pointless so caching should be fine since explorer code does not have any desktop window re-creating logic. Clarification: the `is_desktop` flag was there only because after 4b5311c7e02aa7ab2409f8fdcd22233f116dc4bc desktop window's HWND is not known before calling the pCreateDesktop callback so it is not possible to assign it on java side. After assigning desktop window the check is no longer needed. I am reverting the removal of that change.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9874#note_131201