1
1
mirror of https://github.com/wez/wezterm.git synced 2024-08-17 02:00:25 +03:00

Remove/rename unused stuff

This commit is contained in:
V 2024-04-08 06:02:18 +02:00 committed by Wez Furlong
parent f5a69b8746
commit 5b0e7bca93
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387
3 changed files with 19 additions and 20 deletions

View File

@ -9,24 +9,24 @@ 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>,
_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>,
_state: &mut WaylandState,
_proxy: &WpCursorShapeDeviceV1,
_event: <WpCursorShapeDeviceV1 as wayland_client::Proxy>::Event,
_data: &GlobalData,
_conn: &wayland_client::Connection,
_qhandle: &wayland_client::QueueHandle<WaylandState>,
) {
todo!()
}

View File

@ -25,7 +25,7 @@ impl DataDeviceHandler for WaylandState {
&mut self,
_conn: &wayland_client::Connection,
_qh: &wayland_client::QueueHandle<Self>,
data_device: &WlDataDevice,
_data_device: &WlDataDevice,
) {
let offer = self
.data_device
@ -95,7 +95,7 @@ impl DataDeviceHandler for WaylandState {
&mut self,
_conn: &wayland_client::Connection,
_qh: &wayland_client::QueueHandle<Self>,
data_device: &WlDataDevice,
_data_device: &WlDataDevice,
) {
let offer = self
.data_device

View File

@ -904,8 +904,7 @@ impl WaylandWindowInner {
fn set_cursor(&mut self, cursor: Option<MouseCursor>) {
let conn = Connection::get().unwrap().wayland();
let state = conn.wayland_state.borrow_mut();
let (shm, pointer) =
RefMut::map_split(state, |s| (&mut s.shm, s.pointer.as_mut().unwrap()));
let pointer = RefMut::map(state, |s| s.pointer.as_mut().unwrap());
if let Err(err) = match cursor {
Some(cursor) => pointer.set_cursor(
@ -1280,10 +1279,10 @@ impl CompositorHandler for WaylandState {
fn transform_changed(
&mut self,
conn: &WConnection,
qh: &wayland_client::QueueHandle<Self>,
surface: &wayland_client::protocol::wl_surface::WlSurface,
new_transform: wayland_client::protocol::wl_output::Transform,
_conn: &WConnection,
_qh: &wayland_client::QueueHandle<Self>,
_surface: &wayland_client::protocol::wl_surface::WlSurface,
_new_transform: wayland_client::protocol::wl_output::Transform,
) {
// TODO: do we need to do anything here?
}