summaryrefslogtreecommitdiff
path: root/src/conn_info
diff options
context:
space:
mode:
Diffstat (limited to 'src/conn_info')
-rw-r--r--src/conn_info/atoms.rs1
-rw-r--r--src/conn_info/mod.rs7
2 files changed, 8 insertions, 0 deletions
diff --git a/src/conn_info/atoms.rs b/src/conn_info/atoms.rs
index 9b3a78a..ca715ef 100644
--- a/src/conn_info/atoms.rs
+++ b/src/conn_info/atoms.rs
@@ -1,4 +1,5 @@
xcb::atoms_struct! {
+ /// Interned atoms, mostly for window properties
#[derive(Copy, Clone, Debug)]
pub struct Atoms {
pub wm_protocols => b"WM_PROTOCOLS" only_if_exists = false,
diff --git a/src/conn_info/mod.rs b/src/conn_info/mod.rs
index 183f691..c1d768d 100644
--- a/src/conn_info/mod.rs
+++ b/src/conn_info/mod.rs
@@ -1,3 +1,5 @@
+//! Global resources and utilities
+
use std::fmt::Debug;
use xcb::{
x::{
@@ -7,9 +9,13 @@ use xcb::{
Connection as RawConnection, Cookie, VoidCookieChecked,
};
+#[doc(hidden)]
mod atoms;
+#[doc(hidden)]
mod colours;
+#[doc(hidden)]
mod cursors;
+#[doc(hidden)]
mod keys;
pub use self::{
@@ -49,6 +55,7 @@ pub struct Connection<'a> {
pub keyboard_state: KeyboardInfo,
}
+/// Helper macro to log a request / cookie when debug_assertions are on
macro_rules! debug_req {
($req:ident) => {
#[cfg(debug_assertions)]