https://bugs.winehq.org/show_bug.cgi?id=48732 --- Comment #11 from Gabriel Ivăncescu <gabrielopcode(a)gmail.com> --- Created attachment 66642 --> https://bugs.winehq.org/attachment.cgi?id=66642 Don't unparent the window, but clear the child style. Can you please test this patch and tell me if it also solves the crash? I've done more tests how Windows operates here. It does not actually unparent the window, but only clear the child style, regardless of whether it had a parent before or not. SetParent does actually send some messages: WM_WINDOWPOSCHANGING and WM_WINDOWPOSCHANGED, since it hides then shows the window. I don't know if those are the cause of this, or others. There's a lot of messages sent on Wine that aren't on Windows, because of it: WM_WINDOWPOSCHANGING WM_WINDOWPOSCHANGED WM_ACTIVATEAPP WM_NCACTIVATE WM_ACTIVATE WM_SETFOCUS WM_KILLFOCUS On Windows 7, when releasing, it's only a custom message and the WM_STYLECHANGING/WM_STYLECHANGED that are sent, along the destroy messages of course. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.