diff options
Diffstat (limited to 'src/backend')
| -rw-r--r-- | src/backend/tty.rs | 3 | ||||
| -rw-r--r-- | src/backend/winit.rs | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/tty.rs b/src/backend/tty.rs index 5ad08649..a1c75c8d 100644 --- a/src/backend/tty.rs +++ b/src/backend/tty.rs @@ -43,7 +43,6 @@ use crate::niri::{OutputRenderElements, State, RedrawState}; use crate::utils::get_monotonic_time; use crate::Niri; -const BACKGROUND_COLOR: [f32; 4] = [0.1, 0.1, 0.1, 1.]; const SUPPORTED_COLOR_FORMATS: &[Fourcc] = &[Fourcc::Argb8888, Fourcc::Abgr8888]; pub struct Tty { @@ -858,7 +857,7 @@ impl Tty { match drm_compositor.render_frame::<_, _, GlesTexture>( &mut device.gles, elements, - BACKGROUND_COLOR, + niri.clear_color(), ) { Ok(res) => { if self diff --git a/src/backend/winit.rs b/src/backend/winit.rs index d1abfac2..41da8ab6 100644 --- a/src/backend/winit.rs +++ b/src/backend/winit.rs @@ -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); |
