mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-21 02:01:55 +07:00
layout/scrolling: Update view offset on config update
Fix always-centering not applied right away. No other changes intended.
This commit is contained in:
@@ -293,6 +293,11 @@ impl<W: LayoutElement> ScrollingSpace<W> {
|
||||
self.working_area = working_area;
|
||||
self.scale = scale;
|
||||
self.options = options;
|
||||
|
||||
// Apply always-center and such right away.
|
||||
if !self.columns.is_empty() && !self.view_offset.is_gesture() {
|
||||
self.animate_view_offset_to_column(None, self.active_column_idx, None);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn update_shaders(&mut self) {
|
||||
|
||||
Reference in New Issue
Block a user