Remove pinnacle file

This commit is contained in:
Ottatop 2023-10-20 20:23:55 -05:00
parent 0c457a4ec6
commit 3e36c7bea4
3 changed files with 9 additions and 11 deletions

View file

@ -47,7 +47,7 @@ fn main() {
input::keybind(
&[mod_key, Modifier::Alt],
'q',
|_| pinnacle::quit(),
|_| pinnacle_api::quit(),
&mut callback_vec,
);

View file

@ -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

View file

@ -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();
}