https://bugs.winehq.org/show_bug.cgi?id=57474
--- Comment #1 from O. Nykyforchyn oleh.nyk@gmail.com --- A quick and dirty hack (commenting out the is_window_rect_mapped() check) makes things work.
--- window.c.orig 2024-11-27 14:51:32.649671271 +0200 +++ window.c 2024-11-27 14:59:49.405653933 +0200 @@ -2945,8 +2945,7 @@
if (old_style & WS_VISIBLE) { - if (((swp_flags & SWP_HIDEWINDOW) && !(new_style & WS_VISIBLE)) || - (!(new_style & WS_MINIMIZE) && !is_window_rect_mapped( &new_rects->window ) && is_window_rect_mapped( &old_rects.window ))) + if ((swp_flags & SWP_HIDEWINDOW) && !(new_style & WS_VISIBLE)) { release_win_data( data ); unmap_window( hwnd );
What is interesting, adding !is_virtual_desktop() to the second line does not help, it seems that this function returns FALSE.