summaryrefslogtreecommitdiff
path: root/otk/property.cc
diff options
context:
space:
mode:
Diffstat (limited to 'otk/property.cc')
-rw-r--r--otk/property.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/otk/property.cc b/otk/property.cc
index 359bf8bd..9a0efe5b 100644
--- a/otk/property.cc
+++ b/otk/property.cc
@@ -29,9 +29,7 @@ OBProperty::OBProperty()
_atoms[Atom_String] = XA_STRING;
_atoms[Atom_Utf8] = create("UTF8_STRING");
-#ifdef HAVE_GETPID
_atoms[openbox_pid] = create("_OPENBOX_PID");
-#endif // HAVE_GETPID
_atoms[wm_colormap_windows] = create("WM_COLORMAP_WINDOWS");
_atoms[wm_protocols] = create("WM_PROTOCOLS");
@@ -162,7 +160,9 @@ OBProperty::~OBProperty()
*/
Atom OBProperty::create(const char *name) const
{
- return XInternAtom(OBDisplay::display, name, False);
+ Atom a = XInternAtom(OBDisplay::display, name, False);
+ assert(a);
+ return a;
}