From 5c485216460a86df4743f6d09b6ad2d591086368 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Wed, 8 Nov 2023 22:16:16 +0400 Subject: Don't set screenshot for primary selection It's already in clipboard selection, so no need to duplicate it. --- src/niri.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src') diff --git a/src/niri.rs b/src/niri.rs index 275358b8..570c199b 100644 --- a/src/niri.rs +++ b/src/niri.rs @@ -60,9 +60,7 @@ use smithay::wayland::output::OutputManagerState; use smithay::wayland::pointer_gestures::PointerGesturesState; use smithay::wayland::presentation::PresentationState; use smithay::wayland::selection::data_device::{set_data_device_selection, DataDeviceState}; -use smithay::wayland::selection::primary_selection::{ - set_primary_selection, PrimarySelectionState, -}; +use smithay::wayland::selection::primary_selection::PrimarySelectionState; use smithay::wayland::selection::wlr_data_control::DataControlState; use smithay::wayland::session_lock::{LockSurface, SessionLockManagerState, SessionLocker}; use smithay::wayland::shell::kde::decoration::KdeDecorationState; @@ -2108,12 +2106,6 @@ impl Niri { vec![String::from("image/png")], buf.clone(), ); - set_primary_selection( - &state.niri.display_handle, - &state.niri.seat, - vec![String::from("image/png")], - buf.clone(), - ); } calloop::channel::Event::Closed => (), }) -- cgit