Don't set screenshot for primary selection

It's already in clipboard selection, so no need to duplicate it.
This commit is contained in:
Kirill Chibisov 2023-11-08 22:16:16 +04:00 committed by Ivan Molodetskikh
parent 19e439a865
commit 5c48521646

View File

@ -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 => (),
})