aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-03-23 11:45:35 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-03-23 11:45:54 +0300
commitc709696237f3e963225b8df248538cc691ccba3d (patch)
tree5a91ff1de31ebe834da0018f9adb87a7f3a06978 /src
parentb27140950935da810c4c58fd763a99781923c1bb (diff)
downloadniri-c709696237f3e963225b8df248538cc691ccba3d.tar.gz
niri-c709696237f3e963225b8df248538cc691ccba3d.tar.bz2
niri-c709696237f3e963225b8df248538cc691ccba3d.zip
Don't block things out for pick-color
It's interactive so it's fine.
Diffstat (limited to 'src')
-rw-r--r--src/input/pick_color_grab.rs5
1 files 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<State>,
@@ -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(