private static void WinThreadWinDestroy(CmdWinDestroy cmd) { var window = (Window *)cmd.Window; if (OperatingSystem.IsWindows() && cmd.hadOwner) { // On Windows, closing the child window causes the owner to be minimized, apparently. // Clear owner on close to avoid this. var hWnd = (HWND)GLFW.GetWin32Window(window); DebugTools.Assert(hWnd != HWND.NULL); Windows.SetWindowLongPtrW( hWnd, GWLP.GWLP_HWNDPARENT, 0); } GLFW.DestroyWindow((Window *)cmd.Window); }
private void WinThreadWinDestroy(CmdWinDestroy cmd) { GLFW.DestroyWindow((Window *)cmd.Window); }