The SC_RESTORE might look odd, but I was trying to mirror what DWM does on Windows. Hunt minimizes and restores itself near-atomically, so the game (and the user) never actually sees a minimized window. The immediate SC_RESTORE models that same sequence from the game's perspective. The only real deviation from Windows is that the user has to click to restore, which is a Wayland limitation we can't get around since there's no xdg_toplevel_unset_minimized. XWayland has the same limitation and handles it the same way (user has to re-open the program). I considered suppressing minimization entirely (with checks), but that has too broad a blast radius if it misfires. The sentinel + WS_MINIMIZE check is narrow enough that I'm not worried about it, and the same pattern is used elsewhere in the codebase. I also made sure to send SC_RESTORE immediately rather than waiting for user interaction. If we waited, Hunt's own programmatic restore could arrive while WS_MINIMIZE is still set, and the game may have been expecting that to resolve before it does anything else. That said, I'm open to a cleaner catch-all if anyone has one. This was just the most "correct" approximation I could find. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10487#note_134476