summaryrefslogtreecommitdiff
path: root/src/tags.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tags.rs')
-rw-r--r--src/tags.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tags.rs b/src/tags.rs
index 0c63570..5a4a1b2 100644
--- a/src/tags.rs
+++ b/src/tags.rs
@@ -5,15 +5,17 @@ use pangocairo::{cairo, pango};
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum TagState {
+ Urgent,
Focused,
+ Active,
Inactive,
- Urgent,
}
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
pub struct TagsInfo {
pub focused: u32,
pub urgent: u32,
+ pub active: u32,
}
impl TagsInfo {
@@ -22,6 +24,8 @@ impl TagsInfo {
TagState::Urgent
} else if self.focused >> tag & 1 == 1 {
TagState::Focused
+ } else if self.active >> tag & 1 == 1 {
+ TagState::Active
} else {
TagState::Inactive
}