diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-16 08:43:28 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-16 08:43:28 +0400 |
| commit | da4967d43c5d24c58e77a0f296a3df388a06e37e (patch) | |
| tree | e2cc5a9f51fc6598a09f980b927e3c9aa63c2d0f /niri-config/src | |
| parent | d958a9679c4760990c07c5cc3801ec5d8976b039 (diff) | |
| download | niri-da4967d43c5d24c58e77a0f296a3df388a06e37e.tar.gz niri-da4967d43c5d24c58e77a0f296a3df388a06e37e.tar.bz2 niri-da4967d43c5d24c58e77a0f296a3df388a06e37e.zip | |
Reposition all outputs on any change
This way the positioning is independent of the order of plugging in.
Diffstat (limited to 'niri-config/src')
| -rw-r--r-- | niri-config/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/niri-config/src/lib.rs b/niri-config/src/lib.rs index 1854e597..6cb0675b 100644 --- a/niri-config/src/lib.rs +++ b/niri-config/src/lib.rs @@ -204,7 +204,7 @@ impl Default for Output { } } -#[derive(knuffel::Decode, Debug, Clone, PartialEq, Eq)] +#[derive(knuffel::Decode, Debug, Clone, Copy, PartialEq, Eq)] pub struct Position { #[knuffel(property)] pub x: i32, @@ -212,7 +212,7 @@ pub struct Position { pub y: i32, } -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, Copy, PartialEq)] pub struct Mode { pub width: u16, pub height: u16, |
