forge
Explore
Log in

Don't you dare go Hollow

Don't block things out for pick-color

Browse files at this commit

c709696237f3e963225b8df248538cc691ccba3dIvan MolodetskikhParent: b271409
It's interactive so it's fine.
src/input/pick_color_grab.rsmodified+3 -2
@@ -12,7 +12,7 @@ use smithay::input::SeatHandler;
12 use smithay::utils::{Logical, Physical, Point, Scale, Size, Transform};12 use smithay::utils::{Logical, Physical, Point, Scale, Size, Transform};
13 13
14 use crate::niri::State;14 use crate::niri::State;
15-use crate::render_helpers::render_to_vec;15+use crate::render_helpers::{render_to_vec, RenderTarget};
16 16
17 pub struct PickColorGrab {17 pub struct PickColorGrab {
18 start_data: PointerGrabStartData<State>,18 start_data: PointerGrabStartData<State>,
@@ -52,7 +52,8 @@ impl PickColorGrab {
52 renderer,52 renderer,
53 &output,53 &output,
54 false,54 false,
55- crate::render_helpers::RenderTarget::ScreenCapture,55+ // This is an interactive operation so we can render without blocking out.
56+ RenderTarget::Output,
56 );57 );
57 58
58 let pixels = match render_to_vec(59 let pixels = match render_to_vec(