Implement relative pointer protocol

This commit is contained in:
Ottatop 2024-04-19 15:23:56 -05:00
parent 8df5682328
commit a1021638c5

View file

@ -29,6 +29,7 @@ use smithay::{
dmabuf::DmabufFeedback,
fractional_scale::FractionalScaleManagerState,
output::OutputManagerState,
relative_pointer::RelativePointerManagerState,
selection::{
data_device::DataDeviceState, primary_selection::PrimarySelectionState,
wlr_data_control::DataControlState,
@ -76,6 +77,7 @@ pub struct State {
pub data_control_state: DataControlState,
pub screencopy_manager_state: ScreencopyManagerState,
pub gamma_control_manager_state: GammaControlManagerState,
pub relative_pointer_manager_state: RelativePointerManagerState,
/// The state of key and mousebinds along with libinput settings
pub input_state: InputState,
@ -263,6 +265,9 @@ impl State {
&display_handle,
|_| true,
),
relative_pointer_manager_state: RelativePointerManagerState::new::<Self>(
&display_handle,
),
input_state: InputState::new(),