atoms.h (886B)
1 // Copyright (c) 2003 - 2009 Anselm R Garbe <anselm@garbe.us> 2 // See LICENSE for license details. 3 4 #ifndef __ATOMS_H 5 #define __ATOMS_H 6 7 extern "C" { 8 #include "X11/Xlib.h" 9 } 10 11 /** 12 * Container of all necessary X atoms used by WMI. 13 */ 14 class Atoms 15 { 16 17 public: 18 19 /** Inits all atoms. */ 20 static void initAtoms(); 21 22 /** ICCCM atoms */ 23 static Atom WM_STATE; 24 static Atom WM_CHANGE_STATE; 25 static Atom WM_PROTOCOLS; 26 static Atom WM_DELETE; 27 static Atom WM_TAKE_FOCUS; 28 static Atom WM_COLORMAPS; 29 30 /** MOTIF atoms */ 31 static Atom MWM_HINTS; 32 33 /** NETWM atoms */ 34 static Atom NET_WM_DESKTOP; 35 36 /** wmi atoms */ 37 static Atom WMI_ACTIONCMD; 38 static Atom WMI_METERTEXT; 39 static Atom WMI_STATUSTEXT; 40 static Atom WMI_PRETTYPRINT_REQUEST; 41 static Atom WMI_PRETTYPRINT_RESPONSE; 42 43 private: 44 45 static bool initialized_; 46 }; 47 48 #endif // __ATOMS_H