diff options
| author | MaxVerevkin <maxxverrr@gmail.com> | 2022-08-08 23:12:23 +0300 |
|---|---|---|
| committer | MaxVerevkin <maxxverrr@gmail.com> | 2022-08-08 23:59:59 +0300 |
| commit | 1851c56e407cac72ca104cc5e75692cd9c648986 (patch) | |
| tree | 31473532e01ee6ee1571974a6abf59463e3265ed /src/shared_state.rs | |
| parent | 9ddde2d2ee9833412e39afbd1ed907cdea22f08f (diff) | |
| download | i3bar-mango-1851c56e407cac72ca104cc5e75692cd9c648986.tar.gz | |
rewrite using latest walayd libs & implement HiDPI
Diffstat (limited to 'src/shared_state.rs')
| -rw-r--r-- | src/shared_state.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/shared_state.rs b/src/shared_state.rs new file mode 100644 index 0000000..c4ec9d6 --- /dev/null +++ b/src/shared_state.rs @@ -0,0 +1,18 @@ +use smithay_client_toolkit::{reexports::client::QueueHandle, shm::slot::SlotPool}; + +use crate::{ + config::Config, + i3bar_protocol::Block, + state::{ComputedBlock, State}, + status_cmd::StatusCmd, +}; + +#[derive(Debug)] +pub struct SharedState { + pub qh: QueueHandle<State>, + pub pool: SlotPool, + pub config: Config, + pub status_cmd: Option<StatusCmd>, + pub blocks: Vec<Block>, + pub blocks_cache: Vec<ComputedBlock>, +} |
