polytreewm/src/atoms.h

24 lines
493 B
C
Raw Normal View History

2021-11-12 04:02:46 -05:00
#ifndef _ATOMS_H
#define _ATOMS_H
#include <X11/Xutil.h>
/* EWMH atoms */
enum {
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 {
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