main uint/cterm / libmaus / include / maus_x11.h
 1#ifndef MAUS_X11_H
 2#define MAUS_X11_H
 3
 4#include <stdbool.h>
 5
 6#include <X11/Xlib.h>
 7#include <X11/extensions/XShm.h>
 8
 9typedef enum {
10	MAUS_ATOM_WM_DELETE_WINDOW,
11	MAUS_ATOM_LAST,
12} MausX11Atoms;
13
14typedef struct {
15	Display*       display;
16	Window         root;
17	Window         win;
18	Atom           atoms[MAUS_ATOM_LAST];
19	GC             gc;
20
21	XImage*        image;
22	XShmSegmentInfo shm;
23	bool           shmat;
24} MausBackend;
25
26#endif /* MAUS_X11_H */
27