diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-03-13 11:32:54 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-03-13 14:14:54 +0300 |
| commit | 1c6037e6125870205a878f5267ffb02d3b02db64 (patch) | |
| tree | 990ff2844bc4d2797a66bdc241147365c8efca23 /src/window/mod.rs | |
| parent | fed86fdb5d097b119a3c73c8d8d974b83b49cc5a (diff) | |
| download | niri-1c6037e6125870205a878f5267ffb02d3b02db64.tar.gz niri-1c6037e6125870205a878f5267ffb02d3b02db64.tar.bz2 niri-1c6037e6125870205a878f5267ffb02d3b02db64.zip | |
Add tiled-state window rule, update the tiled state live
Diffstat (limited to 'src/window/mod.rs')
| -rw-r--r-- | src/window/mod.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/window/mod.rs b/src/window/mod.rs index c99d10d2..7c0da71b 100644 --- a/src/window/mod.rs +++ b/src/window/mod.rs @@ -111,6 +111,9 @@ pub struct ResolvedWindowRules { /// Multiplier for all scroll events sent to this window. pub scroll_factor: Option<f64>, + + /// Override whether to set the Tiled xdg-toplevel state on the window. + pub tiled_state: Option<bool>, } impl<'a> WindowRef<'a> { @@ -217,6 +220,7 @@ impl ResolvedWindowRules { block_out_from: None, variable_refresh_rate: None, scroll_factor: None, + tiled_state: None, } } @@ -335,6 +339,9 @@ impl ResolvedWindowRules { if let Some(x) = rule.scroll_factor { resolved.scroll_factor = Some(x.0); } + if let Some(x) = rule.tiled_state { + resolved.tiled_state = Some(x); + } } resolved.open_on_output = open_on_output.map(|x| x.to_owned()); |
