fn can_send_xevent_atom(&self, window: xproto::Window, atom: xproto::Atom) -> Result<bool> {
        let reply = xproto::get_property(
            &self.conn,
            false,
            window,
            self.atoms.WMProtocols,
            xproto::AtomEnum::ATOM,
            0,
            MAX_PROPERTY_VALUE_LEN / 4,
        )?
        .reply()?;

        Ok(reply
            .value32()
            .is_some_and(|v| v.collect::<Vec<xproto::Atom>>().contains(&atom)))
    }
Returns whether a window can recieve a xevent atom.
display-servers/x11rb-display-server/src/xwrap.rs