Skip to content

Instantly share code, notes, and snippets.

@jD91mZM2
Created August 21, 2019 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jD91mZM2/3d26f52a774d5a3ed5f0c94f2c03d562 to your computer and use it in GitHub Desktop.
Save jD91mZM2/3d26f52a774d5a3ed5f0c94f2c03d562 to your computer and use it in GitHub Desktop.
const THE_THINGY: xcb::Atom = 383;
fn main() {
let (conn, _) = xcb::base::Connection::connect(None).unwrap();
let atom = xcb::xproto::get_atom_name(&conn, THE_THINGY).get_reply().unwrap();
println!("Results: {}", atom.name());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment