If XFetchName fails, call XGetWMName and if that fails fallback to window class name.