diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-12-26 08:54:56 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-12-30 20:12:37 +0300 |
| commit | 28b78a563b3a2275874c8c4ae802be074c8b51b2 (patch) | |
| tree | bca740f149071bac6bfee9a1043211dc860d3e7b /src/layout/workspace.rs | |
| parent | 2f380de73b0c4c6dddcd14ff71260c0882213077 (diff) | |
| download | niri-28b78a563b3a2275874c8c4ae802be074c8b51b2.tar.gz niri-28b78a563b3a2275874c8c4ae802be074c8b51b2.tar.bz2 niri-28b78a563b3a2275874c8c4ae802be074c8b51b2.zip | |
layout: Pass and store view_size on a Tile
Diffstat (limited to 'src/layout/workspace.rs')
| -rw-r--r-- | src/layout/workspace.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/layout/workspace.rs b/src/layout/workspace.rs index e3757ff5..9956a982 100644 --- a/src/layout/workspace.rs +++ b/src/layout/workspace.rs @@ -203,6 +203,7 @@ impl<W: LayoutElement> Workspace<W> { ); let floating = FloatingSpace::new( + view_size, working_area, scale.fractional_scale(), clock.clone(), @@ -255,6 +256,7 @@ impl<W: LayoutElement> Workspace<W> { ); let floating = FloatingSpace::new( + view_size, working_area, scale.fractional_scale(), clock.clone(), @@ -337,6 +339,7 @@ impl<W: LayoutElement> Workspace<W> { ); self.floating.update_config( + self.view_size, self.working_area, self.scale.fractional_scale(), options.clone(), @@ -467,6 +470,7 @@ impl<W: LayoutElement> Workspace<W> { self.options.clone(), ); self.floating.update_config( + size, working_area, scale.fractional_scale(), self.options.clone(), @@ -494,6 +498,7 @@ impl<W: LayoutElement> Workspace<W> { ) { let mut tile = Tile::new( window, + self.view_size, self.scale.fractional_scale(), self.clock.clone(), self.options.clone(), @@ -562,6 +567,7 @@ impl<W: LayoutElement> Workspace<W> { ) { let mut tile = Tile::new( window, + self.view_size, self.scale.fractional_scale(), self.clock.clone(), self.options.clone(), @@ -1471,6 +1477,7 @@ impl<W: LayoutElement> Workspace<W> { assert!(Rc::ptr_eq(&self.options, self.scrolling.options())); self.scrolling.verify_invariants(self.working_area); + assert_eq!(self.view_size, self.floating.view_size()); assert_eq!(self.working_area, self.floating.working_area()); assert_eq!(&self.clock, self.floating.clock()); assert!(Rc::ptr_eq(&self.options, self.floating.options())); |
