Window.PropertyReply rep = win.property(false, windowTypes[0],
Atom.ATOM, 0, 1);
if (rep.length() == 1) {
Enum enm = rep.items();
res = (Atom) Atom.intern(display, enm.next_integer(), true);
} else {
/** if not set by application assume NORMAL TYPE */
res = (Atom) Atom.intern(display, "_NET_WM_WINDOW_TYPE_NORMAL");
}
logger.fine("WM Type: " + win + " " + res);