mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-17 06:41:03 +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)]
|
#[derive(Debug, Clone)]
|
||||||
|
#[cfg(feature = "keyboard")]
|
||||||
pub struct KeyboardLayoutUpdate(pub String);
|
pub struct KeyboardLayoutUpdate(pub String);
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
|
#[cfg(feature = "workspaces")]
|
||||||
pub enum WorkspaceUpdate {
|
pub enum WorkspaceUpdate {
|
||||||
/// Provides an initial list of workspaces.
|
/// Provides an initial list of workspaces.
|
||||||
/// This is re-sent to all subscribers when a new subscription is created.
|
/// This is re-sent to all subscribers when a new subscription is created.
|
||||||
|
@ -214,6 +216,7 @@ pub enum WorkspaceUpdate {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
|
#[cfg(feature = "bindmode")]
|
||||||
pub struct BindModeUpdate {
|
pub struct BindModeUpdate {
|
||||||
/// The binding mode that became active.
|
/// The binding mode that became active.
|
||||||
pub name: String,
|
pub name: String,
|
||||||
|
|
|
@ -3,7 +3,7 @@ mod r#impl;
|
||||||
mod layout;
|
mod layout;
|
||||||
mod truncate;
|
mod truncate;
|
||||||
|
|
||||||
#[cfg(any(feature = "bindmode"))]
|
#[cfg(feature = "bindmode")]
|
||||||
use crate::modules::bindmode::Bindmode;
|
use crate::modules::bindmode::Bindmode;
|
||||||
#[cfg(feature = "cairo")]
|
#[cfg(feature = "cairo")]
|
||||||
use crate::modules::cairo::CairoModule;
|
use crate::modules::cairo::CairoModule;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue