From c709696237f3e963225b8df248538cc691ccba3d Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sun, 23 Mar 2025 11:45:35 +0300 Subject: Don't block things out for pick-color It's interactive so it's fine. --- src/input/pick_color_grab.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/input/pick_color_grab.rs b/src/input/pick_color_grab.rs index 1d79f68f..295d7c80 100644 --- a/src/input/pick_color_grab.rs +++ b/src/input/pick_color_grab.rs @@ -12,7 +12,7 @@ use smithay::input::SeatHandler; use smithay::utils::{Logical, Physical, Point, Scale, Size, Transform}; use crate::niri::State; -use crate::render_helpers::render_to_vec; +use crate::render_helpers::{render_to_vec, RenderTarget}; pub struct PickColorGrab { start_data: PointerGrabStartData, @@ -52,7 +52,8 @@ impl PickColorGrab { renderer, &output, false, - crate::render_helpers::RenderTarget::ScreenCapture, + // This is an interactive operation so we can render without blocking out. + RenderTarget::Output, ); let pixels = match render_to_vec( -- cgit