forge
Explore
Log in

Don't you dare go Hollow

Rename FoIPosition to FloatingPosition

Browse files at this commit

8c2b5957eb7a57d38c54eb6332380bd07306fd75Ivan MolodetskikhParent: 4472164
niri-config/src/lib.rsmodified+3 -3
@@ -1020,7 +1020,7 @@ pub struct WindowRule {
1020 #[knuffel(child, unwrap(argument))]1020 #[knuffel(child, unwrap(argument))]
1021 pub variable_refresh_rate: Option<bool>,1021 pub variable_refresh_rate: Option<bool>,
1022 #[knuffel(child)]1022 #[knuffel(child)]
1023- pub default_floating_position: Option<FoIPosition>,1023+ pub default_floating_position: Option<FloatingPosition>,
1024 }1024 }
1025 1025
1026 #[derive(knuffel::Decode, Debug, Default, Clone, PartialEq)]1026 #[derive(knuffel::Decode, Debug, Default, Clone, PartialEq)]
@@ -1085,7 +1085,7 @@ pub struct BorderRule {
1085 }1085 }
1086 1086
1087 #[derive(knuffel::Decode, Debug, Clone, Copy, PartialEq)]1087 #[derive(knuffel::Decode, Debug, Clone, Copy, PartialEq)]
1088-pub struct FoIPosition {1088+pub struct FloatingPosition {
1089 #[knuffel(property)]1089 #[knuffel(property)]
1090 pub x: FloatOrInt<-65535, 65535>,1090 pub x: FloatOrInt<-65535, 65535>,
1091 #[knuffel(property)]1091 #[knuffel(property)]
@@ -3586,7 +3586,7 @@ mod tests {
3586 open_floating: Some(false),3586 open_floating: Some(false),
3587 open_focused: Some(true),3587 open_focused: Some(true),
3588 default_window_height: Some(DefaultPresetSize(Some(PresetSize::Fixed(500)))),3588 default_window_height: Some(DefaultPresetSize(Some(PresetSize::Fixed(500)))),
3589- default_floating_position: Some(FoIPosition {3589+ default_floating_position: Some(FloatingPosition {
3590 x: FloatOrInt(100.),3590 x: FloatOrInt(100.),
3591 y: FloatOrInt(-200.),3591 y: FloatOrInt(-200.),
3592 relative_to: RelativeTo::BottomLeft,3592 relative_to: RelativeTo::BottomLeft,
src/window/mod.rsmodified+2 -2
@@ -1,7 +1,7 @@
1 use std::cmp::{max, min};1 use std::cmp::{max, min};
2 2
3 use niri_config::{3 use niri_config::{
4- BlockOutFrom, BorderRule, CornerRadius, FoIPosition, Match, PresetSize, WindowRule,4+ BlockOutFrom, BorderRule, CornerRadius, FloatingPosition, Match, PresetSize, WindowRule,
5 };5 };
6 use smithay::reexports::wayland_protocols::xdg::shell::server::xdg_toplevel;6 use smithay::reexports::wayland_protocols::xdg::shell::server::xdg_toplevel;
7 use smithay::utils::{Logical, Size};7 use smithay::utils::{Logical, Size};
@@ -44,7 +44,7 @@ pub struct ResolvedWindowRules {
44 pub default_height: Option<Option<PresetSize>>,44 pub default_height: Option<Option<PresetSize>>,
45 45
46 /// Default floating position for this window.46 /// Default floating position for this window.
47- pub default_floating_position: Option<FoIPosition>,47+ pub default_floating_position: Option<FloatingPosition>,
48 48
49 /// Output to open this window on.49 /// Output to open this window on.
50 pub open_on_output: Option<String>,50 pub open_on_output: Option<String>,