2021-01-11 03:55:29 +13:00
|
|
|
#pragma once
|
|
|
|
|
2021-01-12 12:09:43 +13:00
|
|
|
#include <X11/Xutil.h>
|
2021-01-12 03:30:53 +13:00
|
|
|
#include <X11/Xatom.h>
|
2021-01-11 03:55:29 +13:00
|
|
|
#include <X11/Xlib.h>
|
2023-04-19 10:01:28 +12:00
|
|
|
#include <X11/extensions/Xrandr.h>
|
2021-01-11 03:55:29 +13:00
|
|
|
#include <X11/extensions/Xfixes.h>
|
|
|
|
#include <stdlib.h>
|
2021-01-20 09:01:31 +13:00
|
|
|
#include <string.h>
|
2021-01-11 03:55:29 +13:00
|
|
|
|
|
|
|
extern void goXEventCursorChanged(XFixesCursorNotifyEvent event);
|
2021-01-12 03:30:53 +13:00
|
|
|
extern void goXEventClipboardUpdated();
|
2021-01-20 09:01:31 +13:00
|
|
|
extern void goXEventConfigureNotify(Display *display, Window window, char *name, char *role);
|
|
|
|
extern void goXEventUnmapNotify(Window window);
|
2023-04-23 03:06:35 +12:00
|
|
|
extern void goXEventWMChangeState(Display *display, Window window, ulong state);
|
2021-01-11 03:55:29 +13:00
|
|
|
extern void goXEventError(XErrorEvent *event, char *message);
|
|
|
|
extern int goXEventActive();
|
|
|
|
|
|
|
|
static int XEventError(Display *display, XErrorEvent *event);
|
2024-03-28 09:38:33 +13:00
|
|
|
void XSetupErrorHandler();
|
2021-01-11 03:55:29 +13:00
|
|
|
void XEventLoop(char *display);
|
2021-01-20 09:01:31 +13:00
|
|
|
|
2023-04-19 10:01:28 +12:00
|
|
|
static void XWindowManagerStateEvent(Display *display, Window window, ulong action, ulong first, ulong second);
|
2021-01-20 09:01:31 +13:00
|
|
|
void XFileChooserHide(Display *display, Window window);
|