polytreewm/src/atoms.h

30 lines
605 B
C
Raw Normal View History

2021-11-12 09:02:46 +00:00
#ifndef _ATOMS_H
#define _ATOMS_H
2021-11-21 06:11:11 +00:00
#include <stddef.h>
2021-11-12 09:02:46 +00:00
#include <X11/Xutil.h>
2021-11-21 06:11:11 +00:00
#define ATOMS_DELETE(atoms) { \
atoms_delete(atoms); \
atoms = NULL; \
}
2021-11-12 09:02:46 +00:00
/* EWMH atoms */
enum {
NetSupported, NetWMName, NetWMState, NetWMCheck,
2021-11-12 09:02:46 +00:00
NetWMFullscreen, NetActiveWindow, NetWMWindowType, NetWMWindowTypeDialog,
2021-11-14 18:01:33 +00:00
NetClientList, NetLast,
2021-11-12 09:02:46 +00:00
};
/* default atoms */
enum { WMProtocols, WMDelete, WMState, WMTakeFocus, WMLast };
2021-11-12 09:07:15 +00:00
typedef struct Atoms {
Atom wmatom[WMLast], netatom[NetLast], utf8string;
2021-11-12 09:07:15 +00:00
} *Atoms;
2021-11-12 09:02:46 +00:00
2021-11-12 09:07:15 +00:00
Atoms atoms_create(Display *dpy);
2021-11-21 06:11:11 +00:00
void atoms_delete(Atoms atoms);
2021-11-12 09:02:46 +00:00
#endif // _ATOMS_H