Example #1
0
        private static XlibWindow RemoveWindow(Dictionary <UIntPtr, XlibWindow> windows, UIntPtr display, UIntPtr windowHandle, XlibDispatchProvider dispatchProvider)
        {
            _ = windows.Remove(windowHandle, out var window);
            Assert(window != null, Resources.ArgumentNullExceptionMessage, nameof(window));

            if (windows.Count == 0)
            {
                SendClientMessage(
                    display,
                    windowHandle,
                    messageType: dispatchProvider.WmProtocolsAtom,
                    message: dispatchProvider.DispatcherExitRequestedAtom
                    );
            }

            return(window);
        }
Example #2
0
 internal XlibDispatcher(XlibDispatchProvider dispatchProvider, Thread parentThread)
     : base(dispatchProvider, parentThread)
 {
 }