#pragma once #include #include #include #include #include #include #include extern void goXEventCursorChanged(XFixesCursorNotifyEvent event); extern void goXEventClipboardUpdated(); extern void goXEventConfigureNotify(Display *display, Window window, char *name, char *role); extern void goXEventUnmapNotify(Window window); extern void goXEventError(XErrorEvent *event, char *message); extern int goXEventActive(); static int XEventError(Display *display, XErrorEvent *event); void XEventLoop(char *display); static void XWindowManagerStateEvent(Display *display, Window window, ulong action, ulong first, ulong second); void XFileChooserHide(Display *display, Window window);