forge
Explore
Log in

Don't you dare go Hollow

layout: Extract Monitor::update_shaders()

Browse files at this commit

7884d3bfea810740fe2ca7021b102af0f049ccaeIvan MolodetskikhParent: fdbc485
src/layout/mod.rsmodified+1 -3
@@ -2731,9 +2731,7 @@ impl<W: LayoutElement> Layout<W> {
27312731 match &mut self.monitor_set {
27322732 MonitorSet::Normal { monitors, .. } => {
27332733 for mon in monitors {
2734- for ws in &mut mon.workspaces {
2735- ws.update_shaders();
2736- }
2734+ mon.update_shaders();
27372735 }
27382736 }
27392737 MonitorSet::NoOutputs { workspaces, .. } => {
src/layout/monitor.rsmodified+6 -0
@@ -713,6 +713,12 @@ impl<W: LayoutElement> Monitor<W> {
713713 self.options = options;
714714 }
715715
716+ pub fn update_shaders(&mut self) {
717+ for ws in &mut self.workspaces {
718+ ws.update_shaders();
719+ }
720+ }
721+
716722 pub fn move_workspace_down(&mut self) {
717723 let mut new_idx = min(self.active_workspace_idx + 1, self.workspaces.len() - 1);
718724 if new_idx == self.active_workspace_idx {