diff --git a/api/rust/examples/example_config.rs b/api/rust/examples/example_config.rs index d22115f..ea5b8cb 100644 --- a/api/rust/examples/example_config.rs +++ b/api/rust/examples/example_config.rs @@ -47,7 +47,7 @@ fn main() { input::keybind( &[mod_key, Modifier::Alt], 'q', - |_| pinnacle::quit(), + |_| pinnacle_api::quit(), &mut callback_vec, ); diff --git a/api/rust/src/lib.rs b/api/rust/src/lib.rs index da92307..b403eec 100644 --- a/api/rust/src/lib.rs +++ b/api/rust/src/lib.rs @@ -1,11 +1,12 @@ -//! The Rust implementation of API for Pinnacle, a Wayland compositor. +//! The Rust implementation of the configuration API for Pinnacle, +//! a [Smithay](https://github.com/Smithay/smithay)-based Wayland compositor +//! inspired by [AwesomeWM](https://github.com/awesomeWM/awesome). #![warn(missing_docs)] pub mod input; mod msg; pub mod output; -pub mod pinnacle; pub mod process; pub mod tag; pub mod window; @@ -197,6 +198,11 @@ pub fn listen(mut callback_vec: CallbackVec) -> Infallible { } } +/// Quit Pinnacle. +pub fn quit() { + send_msg(Msg::Quit).unwrap(); +} + /// A wrapper around a vector that holds all of your callbacks. /// /// You will need to create this before you can start calling config functions diff --git a/api/rust/src/pinnacle.rs b/api/rust/src/pinnacle.rs deleted file mode 100644 index e0084cb..0000000 --- a/api/rust/src/pinnacle.rs +++ /dev/null @@ -1,8 +0,0 @@ -//! Functions for compositor control, like `setup` and `quit`. - -use crate::{msg::Msg, send_msg}; - -/// Quit Pinnacle. -pub fn quit() { - send_msg(Msg::Quit).unwrap(); -}