2021-11-12 04:02:46 -05:00
|
|
|
#ifndef _ATOMS_H
|
|
|
|
#define _ATOMS_H
|
|
|
|
|
|
|
|
#include <X11/Xutil.h>
|
|
|
|
|
|
|
|
/* EWMH atoms */
|
|
|
|
enum {
|
2021-11-19 03:16:07 -05:00
|
|
|
NetSupported, NetWMName, NetWMState, NetWMCheck,
|
2021-11-12 04:02:46 -05:00
|
|
|
NetWMFullscreen, NetActiveWindow, NetWMWindowType, NetWMWindowTypeDialog,
|
2021-11-14 13:01:33 -05:00
|
|
|
NetClientList, NetLast,
|
2021-11-12 04:02:46 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
/* default atoms */
|
|
|
|
enum { WMProtocols, WMDelete, WMState, WMTakeFocus, WMLast };
|
|
|
|
|
2021-11-12 04:07:15 -05:00
|
|
|
typedef struct Atoms {
|
2021-11-19 03:16:07 -05:00
|
|
|
Atom wmatom[WMLast], netatom[NetLast], utf8string;
|
2021-11-12 04:07:15 -05:00
|
|
|
} *Atoms;
|
2021-11-12 04:02:46 -05:00
|
|
|
|
2021-11-12 04:07:15 -05:00
|
|
|
Atoms atoms_create(Display *dpy);
|
|
|
|
void atoms_destroy(Atoms atoms);
|
2021-11-12 04:02:46 -05:00
|
|
|
|
|
|
|
#endif // _ATOMS_H
|