mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-24 02:01:18 +07:00
Extract Niri::update_shaders()
This commit is contained in:
+1
-1
@@ -547,7 +547,7 @@ impl Tty {
|
||||
}
|
||||
drop(config);
|
||||
|
||||
niri.layout.update_shaders();
|
||||
niri.update_shaders();
|
||||
|
||||
// Create the dmabuf global.
|
||||
let primary_formats = renderer.dmabuf_formats();
|
||||
|
||||
@@ -156,7 +156,7 @@ impl Winit {
|
||||
}
|
||||
drop(config);
|
||||
|
||||
niri.layout.update_shaders();
|
||||
niri.update_shaders();
|
||||
|
||||
niri.add_output(self.output.clone(), None, false);
|
||||
}
|
||||
|
||||
+9
-1
@@ -1260,7 +1260,7 @@ impl State {
|
||||
}
|
||||
|
||||
if shaders_changed {
|
||||
self.niri.layout.update_shaders();
|
||||
self.niri.update_shaders();
|
||||
}
|
||||
|
||||
if cursor_inactivity_timeout_changed {
|
||||
@@ -3264,6 +3264,14 @@ impl Niri {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn update_shaders(&mut self) {
|
||||
self.layout.update_shaders();
|
||||
|
||||
for mapped in self.mapped_layer_surfaces.values_mut() {
|
||||
mapped.update_shaders();
|
||||
}
|
||||
}
|
||||
|
||||
pub fn render<R: NiriRenderer>(
|
||||
&self,
|
||||
renderer: &mut R,
|
||||
|
||||
Reference in New Issue
Block a user