示例#1
0
            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);
            }
示例#2
0
 private void WinThreadWinDestroy(CmdWinDestroy cmd)
 {
     GLFW.DestroyWindow((Window *)cmd.Window);
 }