mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Add tiled-state window rule, update the tiled state live
This commit is contained in:
@@ -1234,6 +1234,8 @@ pub struct WindowRule {
|
||||
pub default_floating_position: Option<FloatingPosition>,
|
||||
#[knuffel(child, unwrap(argument))]
|
||||
pub scroll_factor: Option<FloatOrInt<0, 100>>,
|
||||
#[knuffel(child, unwrap(argument))]
|
||||
pub tiled_state: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(knuffel::Decode, Debug, Default, Clone, PartialEq)]
|
||||
@@ -4503,6 +4505,7 @@ mod tests {
|
||||
},
|
||||
),
|
||||
scroll_factor: None,
|
||||
tiled_state: None,
|
||||
},
|
||||
],
|
||||
layer_rules: [
|
||||
|
||||
Reference in New Issue
Block a user