Draw background with a solid color buffer

This commit is contained in:
Ivan Molodetskikh
2023-10-27 08:34:00 +04:00
parent 27e2648bd4
commit e73f33d6a3
3 changed files with 30 additions and 16 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ use smithay::utils::Transform;
use super::RenderResult;
use crate::config::Config;
use crate::niri::{OutputRenderElements, RedrawState, State, CLEAR_COLOR};
use crate::niri::{OutputRenderElements, RedrawState, State};
use crate::utils::get_monotonic_time;
use crate::Niri;
@@ -148,7 +148,7 @@ impl Winit {
let age = self.backend.buffer_age().unwrap();
let res = self
.damage_tracker
.render_output(self.backend.renderer(), age, elements, CLEAR_COLOR)
.render_output(self.backend.renderer(), age, elements, [0.; 4])
.unwrap();
niri.update_primary_scanout_output(output, &res.states);