Extract niri.clear_color()

This commit is contained in:
Ivan Molodetskikh
2023-10-13 10:31:30 +04:00
parent b8e6d4b7eb
commit f625dede1a
3 changed files with 13 additions and 5 deletions
+2 -1
View File
@@ -157,9 +157,10 @@ impl Winit {
self.backend.bind().unwrap();
let age = self.backend.buffer_age().unwrap();
let clear_color = niri.clear_color();
let res = self
.damage_tracker
.render_output(self.backend.renderer(), age, elements, [0.1, 0.1, 0.1, 1.0])
.render_output(self.backend.renderer(), age, elements, clear_color)
.unwrap();
niri.update_primary_scanout_output(output, &res.states);