meh / rust-xcb-util

Rust bindings and wrappers for XCB utility functions.
MIT License
27 stars 17 forks source link

EWMH atoms seem...weird #4

Closed sector-f closed 7 years ago

sector-f commented 7 years ago

In the xcb crate, all the atoms are constants. But for xcb_util::ewmh, you have to call a function on a xcb_util::ewmh::Connection to access the atoms. Would it be possible to make the EWMH atoms constants, or is this impossible due to a bunch of technical reasons that I don't know about?

meh commented 7 years ago

The EWMH atoms are loaded at runtime when the ewmh::Connection is created, they are not constant.