mirror of
https://github.com/YaLTeR/niri.git
synced 2024-10-26 11:48:09 +03:00
Don't set screenshot for primary selection
It's already in clipboard selection, so no need to duplicate it.
This commit is contained in:
parent
19e439a865
commit
5c48521646
10
src/niri.rs
10
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 => (),
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user