diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-11-24 15:10:14 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-11-24 15:11:51 +0300 |
| commit | 0920ea9f9fdf0b744e79e8dea57d5945ba74f312 (patch) | |
| tree | d16345f47a3cc0cad34e10ab418713cae80b3115 /src/window | |
| parent | 79e41d7d88de44356b48400515076bf5593544e8 (diff) | |
| download | niri-0920ea9f9fdf0b744e79e8dea57d5945ba74f312.tar.gz niri-0920ea9f9fdf0b744e79e8dea57d5945ba74f312.tar.bz2 niri-0920ea9f9fdf0b744e79e8dea57d5945ba74f312.zip | |
layout: Round focus ring/border width to physical at the right place
Before this, focus ring/border width was incorrectly rounded only for
layout config, which does not take into account window rules overrides.
This means that setting width in window rules prevented correct rounding
altogether.
Tests didn't check this because window rules weren't tested. This commit
also adds basic window rules random generation, making the tests catch
this problem too.
Diffstat (limited to 'src/window')
| -rw-r--r-- | src/window/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window/mod.rs b/src/window/mod.rs index a329edd7..89669fe1 100644 --- a/src/window/mod.rs +++ b/src/window/mod.rs @@ -30,7 +30,7 @@ pub enum WindowRef<'a> { } /// Rules fully resolved for a window. -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Clone)] pub struct ResolvedWindowRules { /// Default width for this window. /// |
