mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07: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:
committed by
Ivan Molodetskikh
parent
19e439a865
commit
5c48521646
+1
-9
@@ -60,9 +60,7 @@ use smithay::wayland::output::OutputManagerState;
|
|||||||
use smithay::wayland::pointer_gestures::PointerGesturesState;
|
use smithay::wayland::pointer_gestures::PointerGesturesState;
|
||||||
use smithay::wayland::presentation::PresentationState;
|
use smithay::wayland::presentation::PresentationState;
|
||||||
use smithay::wayland::selection::data_device::{set_data_device_selection, DataDeviceState};
|
use smithay::wayland::selection::data_device::{set_data_device_selection, DataDeviceState};
|
||||||
use smithay::wayland::selection::primary_selection::{
|
use smithay::wayland::selection::primary_selection::PrimarySelectionState;
|
||||||
set_primary_selection, PrimarySelectionState,
|
|
||||||
};
|
|
||||||
use smithay::wayland::selection::wlr_data_control::DataControlState;
|
use smithay::wayland::selection::wlr_data_control::DataControlState;
|
||||||
use smithay::wayland::session_lock::{LockSurface, SessionLockManagerState, SessionLocker};
|
use smithay::wayland::session_lock::{LockSurface, SessionLockManagerState, SessionLocker};
|
||||||
use smithay::wayland::shell::kde::decoration::KdeDecorationState;
|
use smithay::wayland::shell::kde::decoration::KdeDecorationState;
|
||||||
@@ -2108,12 +2106,6 @@ impl Niri {
|
|||||||
vec![String::from("image/png")],
|
vec![String::from("image/png")],
|
||||||
buf.clone(),
|
buf.clone(),
|
||||||
);
|
);
|
||||||
set_primary_selection(
|
|
||||||
&state.niri.display_handle,
|
|
||||||
&state.niri.seat,
|
|
||||||
vec![String::from("image/png")],
|
|
||||||
buf.clone(),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
calloop::channel::Event::Closed => (),
|
calloop::channel::Event::Closed => (),
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user