https://bugs.winehq.org/show_bug.cgi?id=57650
--- Comment #5 from William Horvath wine@horvath.blog --- (In reply to RĂ©mi Bernon from comment #4)
Created attachment 77795 [details] Possible fix
Thanks, this patch fixes the regression, but I just noticed this: https://github.com/i3/i3/blob/853b0d9161a5f99c8491751590229a449e4076b6/src/h... which seems very relevant.
Changing the XCB_ICCCM_WM_STATE_NORMAL to XCB_ICCCM_WM_STATE_ICONIC there also makes it work again, but it seems to cause other side effects with toggling fullscreen. Removing that block entirely results in slightly different but still broken behavior.
So, you were right in this probably being a WM bug, but it's surprising that the behavior broke in a similar way on swaywm when it doesn't share this code with i3 (I think...).