mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-17 14:51:04 +02:00
refactor: improvements to feature flags
This commit is contained in:
parent
88190f0d4a
commit
c6f3af4142
2 changed files with 4 additions and 1 deletions
|
@ -179,9 +179,11 @@ impl Visibility {
|
|||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
#[cfg(feature = "keyboard")]
|
||||
pub struct KeyboardLayoutUpdate(pub String);
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
#[cfg(feature = "workspaces")]
|
||||
pub enum WorkspaceUpdate {
|
||||
/// Provides an initial list of workspaces.
|
||||
/// This is re-sent to all subscribers when a new subscription is created.
|
||||
|
@ -214,6 +216,7 @@ pub enum WorkspaceUpdate {
|
|||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
#[cfg(feature = "bindmode")]
|
||||
pub struct BindModeUpdate {
|
||||
/// The binding mode that became active.
|
||||
pub name: String,
|
||||
|
|
|
@ -3,7 +3,7 @@ mod r#impl;
|
|||
mod layout;
|
||||
mod truncate;
|
||||
|
||||
#[cfg(any(feature = "bindmode"))]
|
||||
#[cfg(feature = "bindmode")]
|
||||
use crate::modules::bindmode::Bindmode;
|
||||
#[cfg(feature = "cairo")]
|
||||
use crate::modules::cairo::CairoModule;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue