if (prop != None) { return "xfce"; } prop = XInternAtom(dpy, "_QT_DESKTOP_PROPERTIES", True); if (prop != None) { return "kde"; }
if (prop != None) return "xfce";   prop = XInternAtom(dpy, "_WINDOWMAKER_WM_PROTOCOLS", True); if (prop != None)  return "root";  prop = XInternAtom(dpy, "_WINDOWMAKER_COMMAND", True); if (prop != None) return "root";
char *guess_desktop() {	Atom prop;	prop = XInternAtom(dpy, "XFCE_DESKTOP_WINDOW", True);	if (prop != None) {		return "xfce";	}	prop = XInternAtom(dpy, "_QT_DESKTOP_PROPERTIES", True);	if (prop != None) {		return "kde";	}	prop = XInternAtom(dpy, "NAUTILUS_DESKTOP_WINDOW_ID", True);	if (prop != None) {		return "gnome";	}	prop = XInternAtom(dpy, "_MOTIF_WM_INFO", True);	if (prop != None) {		prop = XInternAtom(dpy, "_DT_WORKSPACE_LIST", True);		if (prop != None) {			return "cde";		}	}	return "root";}