x11rb::resource_manager

Function new_from_resource_manager

Source
pub fn new_from_resource_manager(
    conn: &impl Connection,
) -> Result<Option<Database>, ReplyError>
Expand description

Create a new X11 resource database from the RESOURCE_MANAGER property of the first screen’s root window.

This function returns an error if the GetProperty request to get the RESOURCE_MANAGER property fails. It returns Ok(None) if the property does not exist, has the wrong format, or is empty.