polytreewm/atoms.h

28 lines
661 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, NetSystemTray,
NetSystemTrayOP, NetSystemTrayOrientation, NetSystemTrayOrientationHorz,
NetWMFullscreen, NetActiveWindow, NetWMWindowType, NetWMWindowTypeDialog,
2021-11-14 13:01:33 -05:00
NetClientList, NetLast,
2021-11-12 04:02:46 -05:00
};
/* Xembed atoms */
enum { Manager, Xembed, XembedInfo, XLast };
/* default atoms */
enum { WMProtocols, WMDelete, WMState, WMTakeFocus, WMLast };
2021-11-12 04:07:15 -05:00
typedef struct Atoms {
Atom wmatom[WMLast], netatom[NetLast], xatom[XLast], 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