XRotateWindowProperties can generate BadAtom , BadMatch , and BadWindow errors. The XDeleteProperty function deletes the specified property only if the property was defined on the specified window and causes the X server to generate a PropertyNotify event on the window unless the property does not exist. XDeleteProperty can generate BadAtom and BadWindow errors. The server failed to allocate the requested resource or server memory. BadAtom A value for an Atom argument does not name a defined Atom.
Some numeric value falls outside the range of values accepted by the request.
Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument defined as a set of alternatives can gen- erate this error. BadWindow A value for a Window argument does not name a defined Window.