From 8ab50f9d1ca5795f4eef84ad423dc0d63d990b98 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Fri, 3 May 2024 21:21:58 +0400 Subject: shader_element: Store program type instead of shader --- src/layout/mod.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/layout/mod.rs') diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 83715364..b670b9f5 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -1371,6 +1371,23 @@ impl Layout { } } + pub fn update_shaders(&mut self) { + match &mut self.monitor_set { + MonitorSet::Normal { monitors, .. } => { + for mon in monitors { + for ws in &mut mon.workspaces { + ws.update_shaders(); + } + } + } + MonitorSet::NoOutputs { workspaces, .. } => { + for ws in workspaces { + ws.update_shaders(); + } + } + } + } + pub fn update_config(&mut self, config: &Config) { let options = Rc::new(Options::from_config(config)); -- cgit