aboutsummaryrefslogtreecommitdiff
path: root/src/niri.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-08-20 11:43:32 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2024-08-22 14:15:04 +0300
commit618fa08aa5649e867c24db5ae941ca7f5064eeca (patch)
tree085dbbd37c3069c258c33f819fcfcd5ea3868a8a /src/niri.rs
parenta40e7b44707692335910532c33e41cad0023844e (diff)
downloadniri-618fa08aa5649e867c24db5ae941ca7f5064eeca.tar.gz
niri-618fa08aa5649e867c24db5ae941ca7f5064eeca.tar.bz2
niri-618fa08aa5649e867c24db5ae941ca7f5064eeca.zip
Update Smithay (apply state in post commit)
Diffstat (limited to 'src/niri.rs')
-rw-r--r--src/niri.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/niri.rs b/src/niri.rs
index 7a79c0f4..33ca7d6d 100644
--- a/src/niri.rs
+++ b/src/niri.rs
@@ -32,7 +32,7 @@ use smithay::backend::renderer::element::{
};
use smithay::backend::renderer::gles::GlesRenderer;
use smithay::backend::renderer::sync::SyncPoint;
-use smithay::backend::renderer::Unbind;
+use smithay::backend::renderer::{Color32F, Unbind};
use smithay::desktop::utils::{
bbox_from_surface_tree, output_update, send_dmabuf_feedback_surface_tree,
send_frames_surface_tree, surface_presentation_feedback_flags_from_states,
@@ -1137,6 +1137,7 @@ impl State {
.unwrap_or(DEFAULT_BACKGROUND_COLOR)
.to_array_unpremul();
background_color[3] = 1.;
+ let background_color = Color32F::from(background_color);
if let Some(state) = self.niri.output_state.get_mut(output) {
if state.background_buffer.color() != background_color {