Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c709696

Browse files
committedMar 23, 2025·
Don't block things out for pick-color
It's interactive so it's fine.
1 parent b271409 commit c709696

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/input/pick_color_grab.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use smithay::input::SeatHandler;
1212
use smithay::utils::{Logical, Physical, Point, Scale, Size, Transform};
1313

1414
use crate::niri::State;
15-
use crate::render_helpers::render_to_vec;
15+
use crate::render_helpers::{render_to_vec, RenderTarget};
1616

1717
pub struct PickColorGrab {
1818
start_data: PointerGrabStartData<State>,
@@ -52,7 +52,8 @@ impl PickColorGrab {
5252
renderer,
5353
&output,
5454
false,
55-
crate::render_helpers::RenderTarget::ScreenCapture,
55+
// This is an interactive operation so we can render without blocking out.
56+
RenderTarget::Output,
5657
);
5758

5859
let pixels = match render_to_vec(

0 commit comments

Comments
 (0)
Please sign in to comment.