_atoms[wm_take_focus] = create("WM_TAKE_FOCUS");
_atoms[wm_name] = create("WM_NAME");
_atoms[wm_icon_name] = create("WM_ICON_NAME");
+ _atoms[wm_class] = create("WM_CLASS");
_atoms[motif_wm_hints] = create("_MOTIF_WM_HINTS");
_atoms[blackbox_hints] = create("_BLACKBOX_HINTS");
_atoms[blackbox_attributes] = create("_BLACKBOX_ATTRIBUTES");
switch (type) {
case ansi: t = _atoms[string]; break;
case utf8: t = _atoms[utf8_string]; break;
- default: assert(False); // unhandled StringType
+ default: assert(False); return; // unhandled StringType
}
setValue(win, _atoms[atom], t,
reinterpret_cast<unsigned char *>(const_cast<char *>(value.c_str())),
switch (type) {
case ansi: t = _atoms[string]; break;
case utf8: t = _atoms[utf8_string]; break;
- default: assert(False); // unhandled StringType
+ default: assert(False); return; // unhandled StringType
}
std::string value;
switch (type) {
case ansi: t = _atoms[string]; break;
case utf8: t = _atoms[utf8_string]; break;
- default: assert(False); // unhandled StringType
+ default: assert(False); return False; // unhandled StringType
}
unsigned char *value;
std::string::const_iterator tmp = it; // current string.begin()
it = std::find(tmp, end, '\0'); // look for null between tmp and end
strings.push_back(std::string(tmp, it)); // s[tmp:it)
+ ++num;
if (it == end) break;
++it;
if (it == end) break;
- ++num;
}
nelements = num;