diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-16 09:45:47 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-16 11:34:34 +0400 |
| commit | 69907f123d2f17bc1f9a04c0bda7430f250404de (patch) | |
| tree | 6cf3d21538ec2e3002a2562ed51ccb392645ca67 /src/layout/mod.rs | |
| parent | 6ca3b6ddb564d34e50881faefec6e06e11b9fcb9 (diff) | |
| download | niri-69907f123d2f17bc1f9a04c0bda7430f250404de.tar.gz niri-69907f123d2f17bc1f9a04c0bda7430f250404de.tar.bz2 niri-69907f123d2f17bc1f9a04c0bda7430f250404de.zip | |
Add live-reload of output scales
Diffstat (limited to 'src/layout/mod.rs')
| -rw-r--r-- | src/layout/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 539177cb..be1ed6b5 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -637,6 +637,8 @@ impl<W: LayoutElement> Layout<W> { } pub fn update_output_size(&mut self, output: &Output) { + let _span = tracy_client::span!("Layout::update_output_size"); + let MonitorSet::Normal { monitors, .. } = &mut self.monitor_set else { panic!() }; @@ -648,6 +650,7 @@ impl<W: LayoutElement> Layout<W> { for ws in &mut mon.workspaces { ws.set_view_size(view_size, working_area); + ws.update_output_scale_transform(); } break; |
