示例#1
0
        internal override void DestroyWindow(IntPtr handle)
        {
            X11Hwnd hwnd;

            hwnd = (X11Hwnd)Hwnd.ObjectFromHandle(handle);

            if (hwnd == null)
            {
#if DriverDebug || DriverDebugDestroy
                Console.WriteLine("window {0:X} already destroyed", handle.ToInt32());
#endif
                return;
            }

#if DriverDebug || DriverDebugDestroy
            Console.WriteLine("Destroying window {0}", XplatUI.Window(hwnd.ClientWindow));
#endif

            display.DestroyWindow(hwnd);
        }