mirror of
https://github.com/wez/wezterm.git
synced 2024-08-17 02:00:25 +03:00
Use the existing CursorShapeManager provided by SCTK
This commit is contained in:
parent
5b0e7bca93
commit
5654bbff47
@ -1,33 +0,0 @@
|
||||
use smithay_client_toolkit::globals::GlobalData;
|
||||
use wayland_client::Dispatch;
|
||||
use wayland_protocols::wp::cursor_shape::v1::client::wp_cursor_shape_device_v1::WpCursorShapeDeviceV1;
|
||||
use wayland_protocols::wp::cursor_shape::v1::client::wp_cursor_shape_manager_v1::WpCursorShapeManagerV1;
|
||||
|
||||
use super::state::WaylandState;
|
||||
|
||||
pub(super) struct CursorShapeManagerState {}
|
||||
|
||||
impl Dispatch<WpCursorShapeManagerV1, GlobalData, WaylandState> for CursorShapeManagerState {
|
||||
fn event(
|
||||
_state: &mut WaylandState,
|
||||
_proxy: &WpCursorShapeManagerV1,
|
||||
_event: <WpCursorShapeManagerV1 as wayland_client::Proxy>::Event,
|
||||
_data: &GlobalData,
|
||||
_conn: &wayland_client::Connection,
|
||||
_qhandle: &wayland_client::QueueHandle<WaylandState>,
|
||||
) {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
impl Dispatch<WpCursorShapeDeviceV1, GlobalData, WaylandState> for CursorShapeManagerState {
|
||||
fn event(
|
||||
_state: &mut WaylandState,
|
||||
_proxy: &WpCursorShapeDeviceV1,
|
||||
_event: <WpCursorShapeDeviceV1 as wayland_client::Proxy>::Event,
|
||||
_data: &GlobalData,
|
||||
_conn: &wayland_client::Connection,
|
||||
_qhandle: &wayland_client::QueueHandle<WaylandState>,
|
||||
) {
|
||||
todo!()
|
||||
}
|
||||
}
|
@ -8,7 +8,6 @@ pub use self::window::*;
|
||||
pub use connection::*;
|
||||
pub use output::*;
|
||||
mod copy_and_paste;
|
||||
mod cursor_shape;
|
||||
mod drag_and_drop;
|
||||
// mod frame;
|
||||
mod data_device;
|
||||
|
@ -13,6 +13,7 @@ use smithay_client_toolkit::reexports::protocols_wlr::output_management::v1::cli
|
||||
use smithay_client_toolkit::reexports::protocols_wlr::output_management::v1::client::zwlr_output_manager_v1::ZwlrOutputManagerV1;
|
||||
use smithay_client_toolkit::reexports::protocols_wlr::output_management::v1::client::zwlr_output_mode_v1::ZwlrOutputModeV1;
|
||||
use smithay_client_toolkit::registry::{ProvidesRegistryState, RegistryState};
|
||||
use smithay_client_toolkit::seat::pointer::cursor_shape::CursorShapeManager;
|
||||
use smithay_client_toolkit::seat::pointer::ThemedPointer;
|
||||
use smithay_client_toolkit::seat::SeatState;
|
||||
use smithay_client_toolkit::shell::xdg::XdgShell;
|
||||
@ -40,7 +41,6 @@ use wayland_protocols::wp::text_input::zv3::client::zwp_text_input_v3::ZwpTextIn
|
||||
use crate::x11::KeyboardWithFallback;
|
||||
|
||||
use super::copy_and_paste::{PrimarySelectionManagerData, PrimarySelectionManagerState};
|
||||
use super::cursor_shape::CursorShapeManagerState;
|
||||
use super::inputhandler::{TextInputData, TextInputState};
|
||||
use super::pointer::{PendingMouse, PointerUserData};
|
||||
use super::{OutputManagerData, OutputManagerState, SurfaceUserData, WaylandWindowInner};
|
||||
@ -179,8 +179,8 @@ delegate_dispatch!(WaylandState: [WlPointer: PointerUserData] => SeatState);
|
||||
delegate_xdg_shell!(WaylandState);
|
||||
delegate_xdg_window!(WaylandState);
|
||||
|
||||
delegate_dispatch!(WaylandState: [WpCursorShapeManagerV1: GlobalData] => CursorShapeManagerState);
|
||||
delegate_dispatch!(WaylandState: [WpCursorShapeDeviceV1: GlobalData] => CursorShapeManagerState);
|
||||
delegate_dispatch!(WaylandState: [WpCursorShapeManagerV1: GlobalData] => CursorShapeManager);
|
||||
delegate_dispatch!(WaylandState: [WpCursorShapeDeviceV1: GlobalData] => CursorShapeManager);
|
||||
|
||||
delegate_dispatch!(WaylandState: [ZwpTextInputManagerV3: GlobalData] => TextInputState);
|
||||
delegate_dispatch!(WaylandState: [ZwpTextInputV3: TextInputData] => TextInputState);
|
||||
|
Loading…
Reference in New Issue
Block a user