aboutsummaryrefslogtreecommitdiff
path: root/src/window/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/window/mod.rs')
-rw-r--r--src/window/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/window/mod.rs b/src/window/mod.rs
index 63cdbe3f..ddf712b0 100644
--- a/src/window/mod.rs
+++ b/src/window/mod.rs
@@ -52,6 +52,9 @@ pub struct ResolvedWindowRules {
///
/// `None` means using the SSD heuristic.
pub draw_border_with_background: Option<bool>,
+
+ /// Extra opacity to draw this window with.
+ pub opacity: Option<f32>,
}
impl<'a> WindowRef<'a> {
@@ -82,6 +85,7 @@ impl ResolvedWindowRules {
max_width: None,
max_height: None,
draw_border_with_background: None,
+ opacity: None,
}
}
@@ -153,6 +157,9 @@ impl ResolvedWindowRules {
if let Some(x) = rule.draw_border_with_background {
resolved.draw_border_with_background = Some(x);
}
+ if let Some(x) = rule.opacity {
+ resolved.opacity = Some(x);
+ }
}
resolved.open_on_output = open_on_output.map(|x| x.to_owned());