mirror of
https://github.com/wez/wezterm.git
synced 2024-11-29 10:04:49 +03:00
Remove/rename unused stuff
This commit is contained in:
parent
f5a69b8746
commit
5b0e7bca93
@ -9,24 +9,24 @@ pub(super) struct CursorShapeManagerState {}
|
|||||||
|
|
||||||
impl Dispatch<WpCursorShapeManagerV1, GlobalData, WaylandState> for CursorShapeManagerState {
|
impl Dispatch<WpCursorShapeManagerV1, GlobalData, WaylandState> for CursorShapeManagerState {
|
||||||
fn event(
|
fn event(
|
||||||
state: &mut WaylandState,
|
_state: &mut WaylandState,
|
||||||
proxy: &WpCursorShapeManagerV1,
|
_proxy: &WpCursorShapeManagerV1,
|
||||||
event: <WpCursorShapeManagerV1 as wayland_client::Proxy>::Event,
|
_event: <WpCursorShapeManagerV1 as wayland_client::Proxy>::Event,
|
||||||
data: &GlobalData,
|
_data: &GlobalData,
|
||||||
conn: &wayland_client::Connection,
|
_conn: &wayland_client::Connection,
|
||||||
qhandle: &wayland_client::QueueHandle<WaylandState>,
|
_qhandle: &wayland_client::QueueHandle<WaylandState>,
|
||||||
) {
|
) {
|
||||||
todo!()
|
todo!()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
impl Dispatch<WpCursorShapeDeviceV1, GlobalData, WaylandState> for CursorShapeManagerState {
|
impl Dispatch<WpCursorShapeDeviceV1, GlobalData, WaylandState> for CursorShapeManagerState {
|
||||||
fn event(
|
fn event(
|
||||||
state: &mut WaylandState,
|
_state: &mut WaylandState,
|
||||||
proxy: &WpCursorShapeDeviceV1,
|
_proxy: &WpCursorShapeDeviceV1,
|
||||||
event: <WpCursorShapeDeviceV1 as wayland_client::Proxy>::Event,
|
_event: <WpCursorShapeDeviceV1 as wayland_client::Proxy>::Event,
|
||||||
data: &GlobalData,
|
_data: &GlobalData,
|
||||||
conn: &wayland_client::Connection,
|
_conn: &wayland_client::Connection,
|
||||||
qhandle: &wayland_client::QueueHandle<WaylandState>,
|
_qhandle: &wayland_client::QueueHandle<WaylandState>,
|
||||||
) {
|
) {
|
||||||
todo!()
|
todo!()
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ impl DataDeviceHandler for WaylandState {
|
|||||||
&mut self,
|
&mut self,
|
||||||
_conn: &wayland_client::Connection,
|
_conn: &wayland_client::Connection,
|
||||||
_qh: &wayland_client::QueueHandle<Self>,
|
_qh: &wayland_client::QueueHandle<Self>,
|
||||||
data_device: &WlDataDevice,
|
_data_device: &WlDataDevice,
|
||||||
) {
|
) {
|
||||||
let offer = self
|
let offer = self
|
||||||
.data_device
|
.data_device
|
||||||
@ -95,7 +95,7 @@ impl DataDeviceHandler for WaylandState {
|
|||||||
&mut self,
|
&mut self,
|
||||||
_conn: &wayland_client::Connection,
|
_conn: &wayland_client::Connection,
|
||||||
_qh: &wayland_client::QueueHandle<Self>,
|
_qh: &wayland_client::QueueHandle<Self>,
|
||||||
data_device: &WlDataDevice,
|
_data_device: &WlDataDevice,
|
||||||
) {
|
) {
|
||||||
let offer = self
|
let offer = self
|
||||||
.data_device
|
.data_device
|
||||||
|
@ -904,8 +904,7 @@ impl WaylandWindowInner {
|
|||||||
fn set_cursor(&mut self, cursor: Option<MouseCursor>) {
|
fn set_cursor(&mut self, cursor: Option<MouseCursor>) {
|
||||||
let conn = Connection::get().unwrap().wayland();
|
let conn = Connection::get().unwrap().wayland();
|
||||||
let state = conn.wayland_state.borrow_mut();
|
let state = conn.wayland_state.borrow_mut();
|
||||||
let (shm, pointer) =
|
let pointer = RefMut::map(state, |s| s.pointer.as_mut().unwrap());
|
||||||
RefMut::map_split(state, |s| (&mut s.shm, s.pointer.as_mut().unwrap()));
|
|
||||||
|
|
||||||
if let Err(err) = match cursor {
|
if let Err(err) = match cursor {
|
||||||
Some(cursor) => pointer.set_cursor(
|
Some(cursor) => pointer.set_cursor(
|
||||||
@ -1280,10 +1279,10 @@ impl CompositorHandler for WaylandState {
|
|||||||
|
|
||||||
fn transform_changed(
|
fn transform_changed(
|
||||||
&mut self,
|
&mut self,
|
||||||
conn: &WConnection,
|
_conn: &WConnection,
|
||||||
qh: &wayland_client::QueueHandle<Self>,
|
_qh: &wayland_client::QueueHandle<Self>,
|
||||||
surface: &wayland_client::protocol::wl_surface::WlSurface,
|
_surface: &wayland_client::protocol::wl_surface::WlSurface,
|
||||||
new_transform: wayland_client::protocol::wl_output::Transform,
|
_new_transform: wayland_client::protocol::wl_output::Transform,
|
||||||
) {
|
) {
|
||||||
// TODO: do we need to do anything here?
|
// TODO: do we need to do anything here?
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user