#ifndef __XAtom_h
#define __XAtom_h
+#include "../config.h"
+
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <vector>
-class XDisplay;
-class XScreen;
+class Openbox;
+class ScreenInfo;
class XAtom {
typedef std::vector<Window> SupportWindows;
SupportWindows _support_windows;
Atom
+#ifdef HAVE_GETPID
+ openbox_pid,
+#endif // HAVE_GETPID
+
// window hints
wm_colormap_windows,
wm_protocols,
net_wm_ping;
Atom getAtom(const char *name) const;
- void setSupported(const XScreen *screen);
+ void setSupported(const ScreenInfo *screen);
void setValue(Window win, Atom atom, Atom type, unsigned char *data,
int size, int nelements, bool append) const;
XAtom& operator=(const XAtom&);
public:
- XAtom(const XDisplay *display);
+ XAtom(Openbox &ob);
virtual ~XAtom();
void setCardValue(Window win, Atom atom, long value) const; // 32-bit CARDINAL
void eraseValue(Window win, Atom atom) const;
+#ifdef HAVE_GETPID
+ inline Atom openboxPid() const { return openbox_pid; }
+#endif // HAVE_GETPID
+
inline Atom wmChangeState() const { return wm_change_state; }
inline Atom wmState() const { return wm_state; }
inline Atom wmDelete() const { return wm_delete_window; }